Re: [SQLObject] List columns in a class
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Oleg B. <ph...@ph...> - 2010-07-22 06:02:24
|
On Thu, Jul 22, 2010 at 02:04:21AM +0200, Julien Syx wrote: > What i want to do is something like this : > > for columns in table: > print columns.name > > I defined my class like this : > Class Rights(SQLObject): > user_view = BoolCol > ... print Rights.sqlmeta.columnList print Rights.sqlmeta.columns print Rights.sqlmeta.joins print Rights.sqlmeta.indexes See the class sqlmeta in main.py. Oleg. -- Oleg Broytman http://phd.pp.ru/ ph...@ph... Programmers don't die, they just GOSUB without RETURN. |