> > 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.
>
>    Exactly. After the magic the StringCol object is converted to
> SOStringCol object which you have to look up as
>
> t.sqlmeta.columns['s']

Great, thanks very much.

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