server/session.py
changeset 10301 729f36a1bcfa
parent 10264 d5403de0792b
parent 10272 3231fd2fa7a5
child 10345 ef54ea75a642
equal deleted inserted replaced
10276:ffb269e60348 10301:729f36a1bcfa
   993     def describe(self, eid, asdict=False):
   993     def describe(self, eid, asdict=False):
   994         """return a tuple (type, sourceuri, extid) for the entity with id <eid>"""
   994         """return a tuple (type, sourceuri, extid) for the entity with id <eid>"""
   995         etype, extid, source = self.repo.type_and_source_from_eid(eid, self)
   995         etype, extid, source = self.repo.type_and_source_from_eid(eid, self)
   996         metas = {'type': etype, 'source': source, 'extid': extid}
   996         metas = {'type': etype, 'source': source, 'extid': extid}
   997         if asdict:
   997         if asdict:
   998             metas['asource'] = meta['source'] # XXX pre 3.19 client compat
   998             metas['asource'] = metas['source'] # XXX pre 3.19 client compat
   999             return meta
   999             return metas
  1000         return etype, source, extid
  1000         return etype, source, extid
  1001 
  1001 
  1002     @_with_cnx_set
  1002     @_with_cnx_set
  1003     @_open_only
  1003     @_open_only
  1004     def entity_metas(self, eid):
  1004     def entity_metas(self, eid):