Re: [SQLObject] Changing validator messages
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Tom C. <su...@ic...> - 2009-12-11 06:53:23
|
On Thursday 10 December 2009 23:56:51 Oleg Broytman wrote: > On Thu, Dec 10, 2009 at 11:18:33PM +0200, Tom Coetser wrote: > > >>> vt.foo(name=None) > > > > raise Invalid(self.message('empty', state), value, state) > > formencode.api.Invalid: Please enter a value > > foo(name=None) raises > > raise Invalid(self.message('empty', state), value, state) > formencode.api.Invalid: The name may not be empty. > > for me. I suspect you are using old buggy version of FormEncode. And your suspicion was correct :-) The stable version in Debian Lenny seems to be formencode 1.0.1, but updating to 1.2 seems to have fixed the problem. Thanks very much. Cheers, Tom |