Re: [SQLObject] instantiation inside a transaction
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Jonathan E. <jon...@si...> - 2005-04-01 18:02:23
|
Oleg Broytmann wrote: > dbConn = connectionForURI(dbURI) > > if dbConn.supportTransactions: > dbConn = dbConn.transaction() > > class Table(SQLObject): > _connection = dbConn > > new_row = Table(...) > > dbConn.commit() > > Is it the instantiation you've asked about? If no - I just do not > understand the question. Yes, that's what I'm talking about... But if I have to set _connection to do it, it's going to be a PITA in a threaded environment. Thanks though. -Jonathan |