[repo] fix debug code in DBG_REPO mode (closes #2469942) stable
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Thu, 06 Sep 2012 15:03:52 +0200
branchstable
changeset 8548 eeabc752c32e
parent 8547 f23ac525ddd1
child 8550 63260486de89
[repo] fix debug code in DBG_REPO mode (closes #2469942)
server/repository.py
--- a/server/repository.py	Thu Sep 13 17:26:15 2012 +0200
+++ b/server/repository.py	Thu Sep 06 15:03:52 2012 +0200
@@ -1546,7 +1546,7 @@
         activintegrity = session.is_hook_category_activated('activeintegrity')
         for rtype, eids_subj_obj in relations.iteritems():
             if server.DEBUG & server.DBG_REPO:
-                for subjeid, objeid in relations:
+                for subjeid, objeid in eids_subj_obj:
                     print 'ADD relation', subjeid, rtype, objeid
             for subjeid, objeid in eids_subj_obj:
                 source = self.locate_relation_source(session, subjeid, rtype, objeid)