devtools/fake.py
changeset 9469 032825bbacab
parent 9456 a79e88aad555
child 9478 2d7521881d3d
equal deleted inserted replaced
9468:39b7a91a3f4c 9469:032825bbacab
   189             self.extids[extid] = eid
   189             self.extids[extid] = eid
   190             self.eids[eid] = extid
   190             self.eids[eid] = extid
   191             source.after_entity_insertion(session, extid, entity)
   191             source.after_entity_insertion(session, extid, entity)
   192             return eid
   192             return eid
   193 
   193 
   194     def eid2extid(self, source, eid, session=None):
       
   195         return self.eids[eid]
       
   196 
       
   197 
   194 
   198 class FakeSource(object):
   195 class FakeSource(object):
   199     dbhelper = get_db_helper('sqlite')
   196     dbhelper = get_db_helper('sqlite')
   200     def __init__(self, uri):
   197     def __init__(self, uri):
   201         self.uri = uri
   198         self.uri = uri