entity.py
changeset 7543 570522300e22
parent 7514 32081892850e
child 7552 82dde8276a5b
--- a/entity.py	Mon Jun 20 14:52:19 2011 +0200
+++ b/entity.py	Tue Jun 21 10:57:25 2011 +0200
@@ -395,8 +395,10 @@
 
     @cached
     def cw_metainformation(self):
-        res = dict(zip(('type', 'source', 'extid'), self._cw.describe(self.eid)))
-        res['source'] = self._cw.source_defs()[res['source']]
+        res = self._cw.describe(self.eid, asdict=True)
+        # use 'asource' and not 'source' since this is the actual source,
+        # while 'source' is the physical source (where it's stored)
+        res['source'] = self._cw.source_defs()[res.pop('asource')]
         return res
 
     def cw_check_perm(self, action):