hooks/integrity.py
changeset 5174 78438ad513ca
parent 5060 ee3b856e1406
child 5423 e15abfdcce38
--- a/hooks/integrity.py	Wed Apr 07 09:24:00 2010 +0200
+++ b/hooks/integrity.py	Wed Apr 07 14:26:35 2010 +0200
@@ -77,7 +77,7 @@
                 continue
             if rtype in pendingrtypes:
                 continue
-            if not session.execute(self.base_rql % rtype, {'x': eid}, 'x'):
+            if not session.execute(self.base_rql % rtype, {'x': eid}):
                 etype = session.describe(eid)[0]
                 _ = session._
                 msg = _('at least one relation %(rtype)s is required on '
@@ -304,7 +304,7 @@
             # don't do anything if the entity is being created or deleted
             if not (eid in pendingeids or eid in neweids):
                 etype = session.describe(eid)[0]
-                session.execute(self.base_rql % (etype, rtype), {'x': eid}, 'x')
+                session.execute(self.base_rql % (etype, rtype), {'x': eid})
 
 class _DelayedDeleteSEntityOp(_DelayedDeleteOp):
     """delete orphan subject entity of a composite relation"""