entity.py
branchstable
changeset 8651 353bbd17a8b6
parent 8472 444a8e25c940
child 8655 ab57000bff7b
child 8657 5ab6ec83d5ba
--- a/entity.py	Thu Jan 17 14:40:57 2013 +0100
+++ b/entity.py	Thu Jan 17 14:39:51 2013 +0100
@@ -539,8 +539,10 @@
         """custom json dumps hook to dump the entity's eid
         which is not part of dict structure itself
         """
+        self.complete()
         dumpable = self.cw_attr_cache.copy()
         dumpable['eid'] = self.eid
+        dumpable['__cwetype__'] = self.__regid__
         return dumpable
 
     def cw_adapt_to(self, interface):