equal
deleted
inserted
replaced
875 |
875 |
876 def extid2eid(self, source, extid, etype, session=None, insert=True, |
876 def extid2eid(self, source, extid, etype, session=None, insert=True, |
877 recreate=False): |
877 recreate=False): |
878 """get eid from a local id. An eid is attributed if no record is found""" |
878 """get eid from a local id. An eid is attributed if no record is found""" |
879 cachekey = (extid, source.uri) |
879 cachekey = (extid, source.uri) |
|
880 self.debug('repo extid2eid %s %s %s %s', source, extid, etype, insert) |
880 try: |
881 try: |
881 return self._extid_cache[cachekey] |
882 return self._extid_cache[cachekey] |
882 except KeyError: |
883 except KeyError: |
883 pass |
884 pass |
884 reset_pool = False |
885 reset_pool = False |