[hook] drop now deprecated comment (pop handled by get_data) stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 17 Jan 2011 15:57:26 +0100
branchstable
changeset 6838 6c7adf825b3c
parent 6837 7562418985ef
child 6839 829b068eb9c7
[hook] drop now deprecated comment (pop handled by get_data)
hooks/integrity.py
--- a/hooks/integrity.py	Mon Jan 17 15:45:26 2011 +0100
+++ b/hooks/integrity.py	Mon Jan 17 15:57:26 2011 +0100
@@ -79,8 +79,6 @@
         session = self.session
         pendingeids = session.transaction_data.get('pendingeids', ())
         pendingrtypes = session.transaction_data.get('pendingrtypes', ())
-        # poping key is not optional: if further operation trigger new deletion
-        # of relation, we'll need a new operation
         for eid, rtype in self.get_data():
             # recheck pending eids / relation types
             if eid in pendingeids:
@@ -301,8 +299,6 @@
         session = self.session
         pendingeids = session.transaction_data.get('pendingeids', ())
         neweids = session.transaction_data.get('neweids', ())
-        # poping key is not optional: if further operation trigger new deletion
-        # of composite relation, we'll need a new operation
         for eid, rtype in self.get_data():
             # don't do anything if the entity is being created or deleted
             if not (eid in pendingeids or eid in neweids):