[server] Fix AttributeError in extid2eid
authorLaura Médioni <laura.medioni@logilab.fr>
Mon, 24 Mar 2014 16:38:57 +0100
changeset 9581 cbf4846d408a
parent 9580 abaae1496ba4
child 9582 46ed25d38fe2
[server] Fix AttributeError in extid2eid Session._tx was renamed in cb87e831c183, use _cnx instead.
server/repository.py
--- a/server/repository.py	Tue Mar 11 15:56:05 2014 +0100
+++ b/server/repository.py	Mon Mar 24 16:38:57 2014 +0100
@@ -1095,7 +1095,7 @@
                     hook.CleanupDeletedEidsCacheOp.get_instance(session).add_data(entity.eid)
                     self.system_source.delete_info_multi(session, [entity])
                     if source.should_call_hooks:
-                        session._tx.pending_operations = pending_operations
+                        session._cnx.pending_operations = pending_operations
             raise
 
     def add_info(self, session, entity, source, extid=None, complete=True):