Ed Leafe wrote: > On Nov 15, 2007, at 9:55 AM, Uwe Grauer wrote: > >> The reason why it doesn't work as it did in the past is that the app >> stores a bizobj as the transaction token instead of the connection. > > I can't follow from what you've posted what isn't working correctly. > But if you're going to handle the connection, you should follow the > same approach as all the other bizobj methods. > > def someDbAction(self): > isTransactionManager = self._getTransactionToken() > if isTransactionManager: > cursor.beginTransaction() > > ... do your data stuff > > if isTransactionManager: > cursor.commitTransaction() or cursor.rollbackTransaction() > self._releaseTransactionToken()
What's wrong with wrappers for begin/commit/rollback in the bizobj? Uwe _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/dabo-users/[EMAIL PROTECTED]
