equal
deleted
inserted
replaced
455 |
455 |
456 def __json_encode__(self): |
456 def __json_encode__(self): |
457 """custom json dumps hook to dump the entity's eid |
457 """custom json dumps hook to dump the entity's eid |
458 which is not part of dict structure itself |
458 which is not part of dict structure itself |
459 """ |
459 """ |
460 dumpable = dict(self) |
460 dumpable = self.cw_attr_cache.copy() |
461 dumpable['eid'] = self.eid |
461 dumpable['eid'] = self.eid |
462 return dumpable |
462 return dumpable |
463 |
463 |
464 def cw_adapt_to(self, interface): |
464 def cw_adapt_to(self, interface): |
465 """return an adapter the entity to the given interface name. |
465 """return an adapter the entity to the given interface name. |