UnicodeEncodeError when encoded URL and traversal. Dispatch OK.

2011-12-28 Thread mdob
Hi, When request URL is ascii both dispatch and traversal work but when URL is encoded dispatch works but traversal returns error UnicodeEncodeError: 'latin-1' codec can't encode character u'\u0105' in position 1: ordinal not in range(256). http://localhost:6543/traversal/a%C5%9B I guess maybe url

Re: SQLAHelper 1.0 released, and a proposal

2011-12-28 Thread Michael Bayer
On Dec 28, 2011, at 2:19 AM, Ahmed wrote: I guess being able to refer to the bases from third party libraries is important. user_groups = Table('user_groups', base.metadata, Column('user_id', Integer, ForeignKey('User.id')),

Re: SQLAHelper 1.0 released, and a proposal

2011-12-28 Thread Michael Bayer
On Dec 28, 2011, at 1:36 AM, Mike Orr wrote: On Tue, Dec 27, 2011 at 8:05 AM, Michael Bayer mike...@zzzcomputing.com wrote: What's the use case for a Base being shared to a third party module that doesn't know about your application? This sounds like a bad idea. A Base might have any

Re: SQLAHelper 1.0 released, and a proposal

2011-12-28 Thread Mike Orr
On Wed, Dec 28, 2011 at 8:52 AM, Michael Bayer mike...@zzzcomputing.com wrote: I would say that's just something library authors would need to know how to do.  They need to understand that transactions are defined by the calling application, and how a Session relates to that.   It's just one

Re: SQLAHelper 1.0 released, and a proposal

2011-12-28 Thread Michael Bayer
On Dec 28, 2011, at 3:28 PM, Mike Orr wrote: I would think if the plugin is designed for Pyramid, it would be based around ZopeSQLAlchemy, which provides a master transaction for everyone to integrate towards. Do the third party plugins at least integrate with that ? Question: if

Re: SQLAHelper 1.0 released, and a proposal

2011-12-28 Thread Wyatt Baldwin
On Wednesday, December 28, 2011 8:52:37 AM UTC-8, mike bayer wrote: [...] Also note ticket 2338: http://www.sqlalchemy.org/trac/ticket/2338 , which I'm leaning towards, would add the full module path of things to the registry, so you could say: group = relationship(myauth.classes.Group)

Re: SQLAHelper 1.0 released, and a proposal

2011-12-28 Thread Wyatt Baldwin
On Wednesday, December 28, 2011 12:28:06 PM UTC-8, Mike Orr wrote: [...] Does anyone know of a better name than 'sqlahelper'? helper does seem a bit broad and not particularly descriptive (no offense). I.e., what exactly is it helping me to do? The only alternative I can think of is hub, as

Re: SQLAHelper 1.0 released, and a proposal

2011-12-28 Thread Mike Orr
On Wed, Dec 28, 2011 at 1:55 PM, Wyatt Baldwin wyatt.lee.bald...@gmail.com wrote: On Wednesday, December 28, 2011 12:28:06 PM UTC-8, Mike Orr wrote: [...] Does anyone know of a better name than 'sqlahelper'? helper does seem a bit broad and not particularly descriptive (no offense). I.e.,

Re: SQLAHelper 1.0 released, and a proposal

2011-12-28 Thread Michael Merickel
On Wed, Dec 28, 2011 at 3:19 PM, Michael Bayer mike...@zzzcomputing.comwrote: On Dec 28, 2011, at 3:28 PM, Mike Orr wrote: I would think if the plugin is designed for Pyramid, it would be based around ZopeSQLAlchemy, which provides a master transaction for everyone to integrate towards.

Re: SQLAHelper 1.0 released, and a proposal

2011-12-28 Thread Mike Orr
On Wed, Dec 28, 2011 at 1:19 PM, Michael Bayer mike...@zzzcomputing.com wrote: I can't remember everywhere I've seen things. There are few libraries using SQLAlchemy yet. I mainly wanted to avoid a future mess if everyone did things in different ways, and then had trouble interoperating. The

Re: SQLAHelper 1.0 released, and a proposal

2011-12-28 Thread Mike Orr
On Wed, Dec 28, 2011 at 2:10 PM, Michael Merickel mmeri...@gmail.com wrote: Question: if multiple scoped sessions are created, each using ZopeTransactionExtension, would they all automatically fit into the global commit/rollback? Can we use the same ZopeTransactionExtension *instance*

Re: SQLAHelper 1.0 released, and a proposal

2011-12-28 Thread Michael Bayer
On Dec 28, 2011, at 5:19 PM, Mike Orr wrote: On Wed, Dec 28, 2011 at 2:10 PM, Michael Merickel mmeri...@gmail.com wrote: Question: if multiple scoped sessions are created, each using ZopeTransactionExtension, would they all automatically fit into the global commit/rollback? Can we use the

Re: SQLAHelper 1.0 released, and a proposal

2011-12-28 Thread Michael Merickel
On Wed, Dec 28, 2011 at 4:19 PM, Mike Orr sluggos...@gmail.com wrote: On Wed, Dec 28, 2011 at 2:10 PM, Michael Merickel mmeri...@gmail.com wrote: DBSession = scoped_session(sessionmaker(extension=ZopeTransactionExtension(), twophase=True)) Is there any downside to setting

Re: SQLAHelper 1.0 released, and a proposal

2011-12-28 Thread Michael Merickel
I hate to be posting this without an awesome solution, but I'd like someone to convince me that this is actually a good idea. I have not yet heard of a good use-case other than laziness or poor design for using SQLAHelper, and those are not qualities a library author should have. Any library that

Paster package not installing

2011-12-28 Thread sri
Hi, I am trying to learn pyramid and came to the installation page mentioned in the http://docs.pylonsproject.org/projects/pyramid/en/1.2-branch/tutorials/wiki2/installation.html. And when i am trying to run bin/paster create -t pyramid_routesalchemy tutorial after installing the pyramid,

Re: Paster package not installing

2011-12-28 Thread Gael Pasgrimaud
On Wed, Dec 28, 2011 at 11:35 PM, sri devanasrika...@gmail.com wrote: Hi,   I am trying to learn pyramid and came to the installation page mentioned in the http://docs.pylonsproject.org/projects/pyramid/en/1.2-branch/tutorials/wiki2/installation.html.   And when i am trying to run

Re: Paster package not installing

2011-12-28 Thread Michael Merickel
I think you are following the 1.2.* documentation while you installed 1.3.* via easy_install. PasteScript (paster) was dropped as a dependency between the two versions and the docs have changed. So either start reading the 1.3 docs, or run: easy_install pyramid1.3 On Wed, Dec 28, 2011 at 4:35 PM,

Re: SQLAHelper 1.0 released, and a proposal

2011-12-28 Thread Michael Merickel
On Wed, Dec 28, 2011 at 4:25 PM, Michael Merickel mich...@merickel.orgwrote: On Wed, Dec 28, 2011 at 4:19 PM, Mike Orr sluggos...@gmail.com wrote: On Wed, Dec 28, 2011 at 2:10 PM, Michael Merickel mmeri...@gmail.com wrote: DBSession =

Chameleon

2011-12-28 Thread Julien Cigar
Hello, I'm a new Chameleon user, coming from the Genshi's world ... I was wondering if it's possible to override a variable from another template ? For example I tried the following but it doesn't work: layout.html: === !DOCTYPE html metal:page define-macro=page html

Re: Chameleon

2011-12-28 Thread Chris Rossi
I think you just need to tal:define=tinymce True in some element in index.html that encloses the the use-macro call: tal:block define=tinymce True html metal:use-macro=.../ /tal:block On Wed, Dec 28, 2011 at 5:25 PM, Julien Cigar jci...@ulb.ac.be wrote: Hello, I'm a new Chameleon user,

Re: SQLAHelper 1.0 released, and a proposal

2011-12-28 Thread Ahmed
Any library that utilizes a shared global is just asking for problems when two independent packages want to use that library. I am interested to know the answer to Michael's question. The problem is not multiple bases or sessions, which is to be addressed in Mike's V2 api. It is about multiple

Re: Chameleon

2011-12-28 Thread Malthe Borch
On 28 December 2011 23:25, Julien Cigar jci...@ulb.ac.be wrote:      tal:define=tinymce False This ^^^ was in your template that defines the macro. It should have read: tal:define=tinymce tinymce | False That's because the | pipe operator will catch NameError, and proceed to the next value,