server/repository.py
branchstable
changeset 5603 d8d9f4ec252d
parent 5601 92cf309672ca
child 5606 61b28589d33f
child 5638 cea831403e72
equal deleted inserted replaced
5602:277b15d6d3ed 5603:d8d9f4ec252d
   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