web/views/json.py
changeset 8900 010a59e12d89
parent 8694 d901c36bcfce
child 9492 c7fc56eecd1a
equal deleted inserted replaced
8899:c7a95ebcc093 8900:010a59e12d89
   112         entities = []
   112         entities = []
   113         for entity in self.cw_rset.entities():
   113         for entity in self.cw_rset.entities():
   114             entity.complete() # fetch all attributes
   114             entity.complete() # fetch all attributes
   115             # hack to add extra metadata
   115             # hack to add extra metadata
   116             entity.cw_attr_cache.update({
   116             entity.cw_attr_cache.update({
   117                     '__cwetype__': entity.__regid__,
   117                     '__cwetype__': entity.cw_etype,
   118                     })
   118                     })
   119             entities.append(entity)
   119             entities.append(entity)
   120         self.wdata(entities)
   120         self.wdata(entities)