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