On Sun, Apr 05, 2009 at 07:26:05PM +0200, Markus W. Barth wrote: > Sorry, Oleg, you are right, it accepts both string and datetime. I got a bit > misleaded by the formencode exception > <snippet> > formencode.api.Invalid: expected a date/time string of the '%Y-%m-%d' format > in the DateTimeCol 'date', got <type 'str'> '' instead > </snippet>
Validator/converter tries hard to convert, but if there was an exception it assumes the exception was from strptime() due to a non-corresponding date and format strings. Oleg. -- Oleg Broytmann http://phd.pp.ru/ p...@phd.pp.ru Programmers don't die, they just GOSUB without RETURN. ------------------------------------------------------------------------------ _______________________________________________ sqlobject-discuss mailing list sqlobject-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss