devtools/fake.py
changeset 10315 0f3489d622ba
parent 10001 1245357b3b3e
child 10351 91e63306e277
--- a/devtools/fake.py	Mon Dec 01 16:50:41 2014 +0100
+++ b/devtools/fake.py	Fri Apr 04 14:49:18 2014 +0200
@@ -173,7 +173,7 @@
     def internal_session(self):
         return FakeSession(self)
 
-    def extid2eid(self, source, extid, etype, session, insert=True):
+    def extid2eid(self, source, extid, etype, cnx, insert=True):
         try:
             return self.extids[extid]
         except KeyError:
@@ -181,10 +181,10 @@
                 return None
             self._count += 1
             eid = self._count
-            entity = source.before_entity_insertion(session, extid, etype, eid)
+            entity = source.before_entity_insertion(cnx, extid, etype, eid)
             self.extids[extid] = eid
             self.eids[eid] = extid
-            source.after_entity_insertion(session, extid, entity)
+            source.after_entity_insertion(cnx, extid, entity)
             return eid