server/sources/pyrorql.py
branchstable
changeset 7526 ae31063f3274
parent 7499 96412cfc28e2
child 7536 29961a416faa
equal deleted inserted replaced
7525:1f6839019e6a 7526:ae31063f3274
   232 
   232 
   233     def local_eid(self, cnx, extid, session):
   233     def local_eid(self, cnx, extid, session):
   234         etype, dexturi, dextid = cnx.describe(extid)
   234         etype, dexturi, dextid = cnx.describe(extid)
   235         if dexturi == 'system' or not (
   235         if dexturi == 'system' or not (
   236             dexturi in self.repo.sources_by_uri or self._skip_externals):
   236             dexturi in self.repo.sources_by_uri or self._skip_externals):
       
   237             assert etype in self.support_entities, etype
   237             return self.repo.extid2eid(self, str(extid), etype, session), True
   238             return self.repo.extid2eid(self, str(extid), etype, session), True
   238         if dexturi in self.repo.sources_by_uri:
   239         if dexturi in self.repo.sources_by_uri:
   239             source = self.repo.sources_by_uri[dexturi]
   240             source = self.repo.sources_by_uri[dexturi]
   240             cnx = session.pool.connection(source.uri)
   241             cnx = session.pool.connection(source.uri)
   241             eid = source.local_eid(cnx, dextid, session)[0]
   242             eid = source.local_eid(cnx, dextid, session)[0]