Re: [SQLObject] Problem encapsulating sqlobject connections
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Oleg B. <ph...@ma...> - 2006-03-23 17:56:36
|
On Thu, Mar 23, 2006 at 06:43:40PM +0100, Felix wrote: > class tableAtDB(sqlobject.SQLObject): > def __init__(self, connection, tableFromDB): > self._connection = connection > class sqlmeta: > table = tablaFromDB > #print table > fromDatabase = True sqlmeta must be defined at the class level: class tableAtDB(sqlobject.SQLObject): class sqlmeta: table = "table_name" fromDatabase = True Oleg. -- Oleg Broytmann http://phd.pp.ru/ ph...@ph... Programmers don't die, they just GOSUB without RETURN. |