Re: [SQLObject] Changing validator messages

2009-12-11 Thread Oleg Broytman
On Fri, Dec 11, 2009 at 08:54:16AM +0200, Tom Coetser wrote: > 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. SQLObject's setup.py list requirement "FormEncode>=1.1.1", and I think th

Re: [SQLObject] Changing validator messages

2009-12-10 Thread Tom Coetser
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 > >

Re: [SQLObject] Changing validator messages

2009-12-10 Thread Oleg Broytman
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.mess

[SQLObject] Changing validator messages

2009-12-10 Thread Tom Coetser
Hi All, I am using the field validator option to auto validate certain fields, and return more meaningful error messages than the default ones returned by formencode. It seems that there is a problem with changing some of the messages though. Given this sample file : ~ validatorTest.