entity.py
changeset 8655 ab57000bff7b
parent 8621 038d67f42061
parent 8651 353bbd17a8b6
child 8660 aa865f3be80d
--- a/entity.py	Thu Jan 10 18:31:43 2013 +0100
+++ b/entity.py	Thu Jan 17 18:30:08 2013 +0100
@@ -579,8 +579,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):