On Wed, Sep 30, 2009 at 09:36:15AM +0100, Chris Wood wrote: > My column names don't (I don't think - I can't tell) follow one of the > standard styles. Do I need to create them all manually like: > > BOB = StringCol(dbName="BOB") > > or can I use the columns (or columnsList?) dictionary? If I can use columns, > how do I actually initialise / fill the dictionary?
Either try simple (one-to-one) style, or name you columns explicitly. I.e., either class Table1(sqlobject.SQLObject): class sqlmeta: table = 'Table1' idName = 'Table1ID' fromDatabase = True style = styles.Style() _connection = conn or class Table1(sqlobject.SQLObject): class sqlmeta: table = 'Table1' idName = 'Table1ID' _connection = conn BOB = StringCol(dbName='BOB') 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