Re: [SQLObject] many destroySelf calls from w/in txn?
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Ian B. <ia...@co...> - 2004-02-23 07:55:52
|
On Feb 23, 2004, at 1:33 AM, Joel Boehland wrote: > I've just started playing around with SQLObject and have a question > about > the use of SQLObject.destroySelf. It doesn't take a > connection/transaction > as a parameter, so I can't see how to make it do multiple > destroySelf's from > within a transaction. (i.e. destroy a list of User objects all in the > same transaction) > Am I missing something, or is this something that needs to be added? An object is already associated with a transaction at that point -- when you pass the transaction into the constructor (or .select or whatever), you get an object that is bound to that transaction, so when you delete it you delete it inside the transaction. -- Ian Bicking | ia...@co... | http://blog.ianbicking.org |