server/hookhelper.py
branchstable
changeset 2102 268659907769
parent 1977 606923dff11b
child 2221 d9b85a7b0bdd
--- a/server/hookhelper.py	Thu Jun 11 19:07:47 2009 +0200
+++ b/server/hookhelper.py	Thu Jun 11 19:10:30 2009 +0200
@@ -100,7 +100,8 @@
     relation hooks, the relation may has been deleted at this point, so
     we have handle that
     """
-    for eidfrom, rtype, eidto in reversed(session.query_data('pendingrelations', ())):
+    pending = session.transaction_data.get('pendingrelations', ())
+    for eidfrom, rtype, eidto in reversed(pending):
         if rtype == 'in_state' and eidfrom == eid:
             rset = session.execute('Any S,N WHERE S eid %(x)s, S name N',
                                    {'x': eidto}, 'x')