entity.py
changeset 5728 12d3da7b3bcf
parent 5726 c3b99606644d
child 5736 375819ec7d43
equal deleted inserted replaced
5727:29afb9e715bb 5728:12d3da7b3bcf
   371 
   371 
   372         """
   372         """
   373         del self.cw_attr_cache[attr]
   373         del self.cw_attr_cache[attr]
   374         if hasattr(self, 'edited_attributes'):
   374         if hasattr(self, 'edited_attributes'):
   375             self.edited_attributes.remove(attr)
   375             self.edited_attributes.remove(attr)
       
   376 
       
   377     def clear(self):
       
   378         self.cw_attr_cache.clear()
   376 
   379 
   377     def get(self, key, default=None):
   380     def get(self, key, default=None):
   378         return self.cw_attr_cache.get(key, default)
   381         return self.cw_attr_cache.get(key, default)
   379 
   382 
   380     def setdefault(self, attr, default):
   383     def setdefault(self, attr, default):