diff -r 86e9632a4e9c -r 570522300e22 server/session.py --- a/server/session.py Mon Jun 20 14:52:19 2011 +0200 +++ b/server/session.py Tue Jun 21 10:57:25 2011 +0200 @@ -870,9 +870,13 @@ def source_defs(self): return self.repo.source_defs() - def describe(self, eid): + def describe(self, eid, asdict=False): """return a tuple (type, sourceuri, extid) for the entity with id """ - return self.repo.type_and_source_from_eid(eid, self) + metas = self.repo.type_and_source_from_eid(eid, self) + if asdict: + return dict(zip(('type', 'source', 'extid', 'asource'), metas)) + # XXX :-1 for cw compat, use asdict=True for full information + return metas[:-1] # db-api like interface ###################################################