equal
deleted
inserted
replaced
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 |