Re: [SQLObject] Inheritance failing to clean up?
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Oleg B. <ph...@ph...> - 2006-03-29 21:34:11
|
On Thu, Mar 30, 2006 at 01:32:00AM +0400, Oleg Broytmann wrote: > Either > > 1) > trans = connection.transaction() > sqlhub.processConnection = trans > > or > > 2) > trans = connection.transaction() > projectA = SecondChild(title="Number One", name="No. One", > handle="number_one", connection=trans) > projectB = SecondChild(title="Number Two", name="No. Two", > handle="number_two", connection=trans) > trans.commit() or 3) trans = connection.transaction() class SecondChild(InheritableSQLObject): _connection = trans Oleg. -- Oleg Broytmann http://phd.pp.ru/ ph...@ph... Programmers don't die, they just GOSUB without RETURN. |