On Wed, Sep 30, 2009 at 11:28:28AM +0100, Chris Wood wrote: > Excellent, that works! Thanks.
Good. > 2009/9/30 Oleg Broytman <p...@phd.pp.ru> > > > (Answering to the list...) > > > > On Wed, Sep 30, 2009 at 10:33:18AM +0100, Chris Wood wrote: > > > class Cruise(sqlobject.SQLObject): > > > connection = conn > > > class sqlmeta: > > > table = Table1 > > > idName = 'Table1ID' > > > fromDatabase = True > > > style = styles.Style() > > > testList = sqlmeta.columns > > > > > > print Cruise.sqlmeta.testList Now explanation. You have assigned testList long before SQLObject populates sqlmeta.columns. In sqlmeta.setClass() SQLObject reassigns sqlmeta.columns but your testList stays empty. Oleg. -- Oleg Broytman http://phd.pp.ru/ p...@phd.pp.ru Programmers don't die, they just GOSUB without RETURN. ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ sqlobject-discuss mailing list sqlobject-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss