Hi list,

If I do

------------------------------------------------------
import sqlobject
s = sqlobject.StringCol( length=10 )
s._kw[ 'length' ]
------------------------------------------------------

then I can see that the length parameter of the string column is 10.
But if I do (as in real life):

-------------------------------------------------------
import sqlobject
class t( sqlobject.SQLObject ):
    s = sqlobject.StringCol( length=10 )
t.s._kw[ 'length' ]
--------------------------------------------------------

then this throws an exception saying " 'property' object has no
attribute '_kw' ". I guess it's because of the magic involved in class
creation.

In any case, how can I retrieve the length parameter of a string
column of an already created table class? Or any other parameter set
for any other column?

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
sqlobject-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to