On Tue, May 06, 2008 at 11:48:16PM +0400, Oleg Broytmann wrote: > I usually keep a reference to the connection, so I don't need to extract > it from SQLObjects: > > connection = ... > > class MyTable(SQLObject): > _connection = connection > > connection.commit()
Hmm. There seems to be 2 ways to do commits. You can commit from MyTable._connection.commit() or __connection__ = turbogears.database.PackageHub("blueduck") If I'm not mistaken, the former only commits the current transaction while the latter commits *ALL* tranactions? (Someone convinced me to use the former so I switched.) Chris ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ sqlobject-discuss mailing list sqlobject-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss