Re: Formencode class

2010-02-10 Thread Mike Orr
On Wed, Feb 10, 2010 at 12:55 AM, Ian Wilson wrote: > I'm not quite sure if what I'm about to discuss is what you're asking > so correct me if I'm wrong.  A trailing comma will sometimes create a > tuple depending on the context which doesn't have much to do with > formencode. A comma always crea

Re: Formencode class

2010-02-10 Thread Tomasz Narloch
Ian Wilson pisze: I'm not quite sure if what I'm about to discuss is what you're asking so correct me if I'm wrong. A trailing comma will sometimes create a tuple depending on the context which doesn't have much to do with formencode. Yes I agree. Ha also yes that comma thing has happened to

Re: Formencode class

2010-02-10 Thread Ian Wilson
I'm not quite sure if what I'm about to discuss is what you're asking so correct me if I'm wrong. A trailing comma will sometimes create a tuple depending on the context which doesn't have much to do with formencode. Ha also yes that comma thing has happened to me. The company attribute is recei

Formencode class

2010-02-10 Thread Tomasz Narloch
Have you ever happened to you? My example: class GoodUserForm(FancyValidator): def validate_python(self, value, state): errors = {} [...] try: String(not_empty=True, min=2).to_python(value['company']) # raise KeyError except formencode.Invalid, e: