entity.py
changeset 9469 032825bbacab
parent 9359 31a1813d53f3
child 9478 2d7521881d3d
--- a/entity.py	Thu Jan 23 12:32:16 2014 +0100
+++ b/entity.py	Thu Jan 23 13:47:28 2014 +0100
@@ -633,11 +633,9 @@
 
     @cached
     def cw_metainformation(self):
-        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
+        metas = self._cw.entity_metas(self.eid)
+        metas['source'] = self._cw.source_defs()[metas['source']]
+        return metas
 
     def cw_check_perm(self, action):
         self.e_schema.check_perm(self._cw, action, eid=self.eid)