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) ?

   Both.

> 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.
-- 
     Oleg Broytmann            http://phd.pp.ru/            [EMAIL PROTECTED]
           Programmers don't die, they just GOSUB without RETURN.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
sqlobject-discuss mailing list
sqlobject-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to