diff -r 9bf648d678cd -r a7e1b316af03 hooks/metadata.py --- a/hooks/metadata.py Fri Apr 30 16:39:50 2010 +0200 +++ b/hooks/metadata.py Fri Apr 30 18:24:29 2010 +0200 @@ -69,7 +69,7 @@ def precommit_event(self): session = self.session - for eid in session.transaction_data['set_creator_op']: + for eid in session.transaction_data.pop('set_creator_op'): if session.deleted_in_transaction(eid): # entity have been created and deleted in the same transaction continue @@ -114,7 +114,7 @@ class _SyncOwnersOp(hook.Operation): def precommit_event(self): - for compositeeid, composedeid in self.session.transaction_data['sync_owners_op']: + for compositeeid, composedeid in self.session.transaction_data.pop('sync_owners_op'): self.session.execute('SET X owned_by U WHERE C owned_by U, C eid %(c)s,' 'NOT EXISTS(X owned_by U, X eid %(x)s)', {'c': compositeeid, 'x': composedeid})