On Thu, Nov 15, 2007 at 10:45:06PM +0100, Guilhelm Panaget wrote:
> I'd like to know if it is possible to get allowed values that have been set
> for an EnumCol ?
>
> class Person(Sqlobject):
> name = UnicodeCol(length = 100,notNone = True)
> group = EnumCol(enumValues=["D","P","M","G"])
Every SQLObject table (class) has an sqlmeta object that stores a lot of
information.
print Person.sqlmeta.columns["group"].enumValues
PS. "SQLObject", not "Sqlobject".
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: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
sqlobject-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss