Re: [SQLObject] default empty dict for picklecol

2009-02-02 Thread Daniel Fetchinson
>> >>In newer version of FormEncode compound.All validator got correct >> >> is_empty method: >> >> >> >> def is_empty(self, value): >> >> # sub-validators should handle emptiness. >> >> return False >> >> >> >>So it's time to require more recent FormEncode to be used wi

Re: [SQLObject] default empty dict for picklecol

2009-02-02 Thread Oleg Broytmann
On Mon, Jan 26, 2009 at 02:21:51PM -0800, Daniel Fetchinson wrote: > >>In newer version of FormEncode compound.All validator got correct > >> is_empty method: > >> > >> def is_empty(self, value): > >> # sub-validators should handle emptiness. > >> return False > >> > >>S

Re: [SQLObject] default empty dict for picklecol

2009-01-27 Thread Daniel Fetchinson
>> Just letting you know that I upgraded to FormEncode 1.2.1 and >> everything works fine with sqlobject 0.10.4 in a pretty large >> turbogears app (which doesn't mean that everything will be fine for >> everyone). > >Thank you! > >> By the way, are there plans for a 1.0 release? What are your

Re: [SQLObject] default empty dict for picklecol

2009-01-27 Thread Oleg Broytmann
On Mon, Jan 26, 2009 at 03:50:31PM -0800, Daniel Fetchinson wrote: > Just letting you know that I upgraded to FormEncode 1.2.1 and > everything works fine with sqlobject 0.10.4 in a pretty large > turbogears app (which doesn't mean that everything will be fine for > everyone). Thank you! > By

Re: [SQLObject] default empty dict for picklecol

2009-01-26 Thread Daniel Fetchinson
>>>In newer version of FormEncode compound.All validator got correct >>> is_empty method: >>> >>> def is_empty(self, value): >>> # sub-validators should handle emptiness. >>> return False >>> >>>So it's time to require more recent FormEncode to be used with >>> SQLObject

Re: [SQLObject] default empty dict for picklecol

2009-01-26 Thread Daniel Fetchinson
>>In newer version of FormEncode compound.All validator got correct >> is_empty method: >> >> def is_empty(self, value): >> # sub-validators should handle emptiness. >> return False >> >>So it's time to require more recent FormEncode to be used with >> SQLObject. > >

Re: [SQLObject] default empty dict for picklecol

2009-01-26 Thread Oleg Broytmann
On Tue, Jan 27, 2009 at 12:05:32AM +0300, Oleg Broytmann wrote: >In newer version of FormEncode compound.All validator got correct > is_empty method: > > def is_empty(self, value): > # sub-validators should handle emptiness. > return False > >So it's time to require mo

Re: [SQLObject] default empty dict for picklecol

2009-01-26 Thread Oleg Broytmann
On Mon, Jan 26, 2009 at 12:14:44PM -0800, Daniel Fetchinson wrote: > {'x': {}} > {'x': None} Found it. It is in FormEncode, api.py, class FancyValidator; note if self.is_empty(value): ... return self.empty_value(value) def fro

Re: [SQLObject] default empty dict for picklecol

2009-01-26 Thread Daniel Fetchinson
>>> When using a PickleCol with default={ } the behaviour is not exactly >>> what I would expect: >>> >>> ## >>> from sqlobject import * >>> sqlhub.processConnection = connectionForURI( 'sqlite:///:memory:', >>> debug=True ) >>> cl

Re: [SQLObject] default empty dict for picklecol

2009-01-26 Thread Daniel Fetchinson
>> When using a PickleCol with default={ } the behaviour is not exactly >> what I would expect: >> >> ## >> from sqlobject import * >> sqlhub.processConnection = connectionForURI( 'sqlite:///:memory:', >> debug=True ) >> class t( S

Re: [SQLObject] default empty dict for picklecol

2009-01-26 Thread Oleg Broytmann
On Sun, Jan 25, 2009 at 08:35:03PM -0800, Daniel Fetchinson wrote: > When using a PickleCol with default={ } the behaviour is not exactly > what I would expect: > > ## > from sqlobject import * > sqlhub.processConnection = connect