On Wed, Apr 25, 2007 at 03:15:08PM +0200, Lutz Steinborn wrote:
> I like to use EnumCol but first I have a question:
> who did the check if the given value is in the list of possible
> strings, SQLObject or the database (driver) ?
> btw, is this the correct syntax:
> myCol = EnumCol(enumValues('yes','no','maybe'))
No. The correct is
myCol = EnumCol(enumValues=('yes','no','maybe'))
enumValues is a keyword parameter that requires its value to be a
sequence of strings or None.
Oleg Broytmann http://phd.pp.ru/ phd@...
Programmers don't die, they just GOSUB without RETURN.