check we're not deleting the relation before checking its cardinality... stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 20 Nov 2009 18:11:14 +0100
branchstable
changeset 3886 6389e5d6edcb
parent 3885 32634970a36c
child 3887 130ac9aee402
check we're not deleting the relation before checking its cardinality...
server/hooks.py
--- a/server/hooks.py	Thu Nov 19 19:50:36 2009 +0100
+++ b/server/hooks.py	Fri Nov 20 18:11:14 2009 +0100
@@ -277,6 +277,8 @@
         # recheck pending eids
         if self.eid in self.session.transaction_data.get('pendingeids', ()):
             return
+        if self.rtype in self.session.transaction_data.get('pendingrtypes', ()):
+            return
         if self.session.unsafe_execute(*self._rql()).rowcount < 1:
             etype = self.session.describe(self.eid)[0]
             _ = self.session._