entity.py
changeset 5728 12d3da7b3bcf
parent 5726 c3b99606644d
child 5736 375819ec7d43
--- a/entity.py	Fri Jun 11 07:58:53 2010 +0200
+++ b/entity.py	Fri Jun 11 08:39:21 2010 +0200
@@ -374,6 +374,9 @@
         if hasattr(self, 'edited_attributes'):
             self.edited_attributes.remove(attr)
 
+    def clear(self):
+        self.cw_attr_cache.clear()
+
     def get(self, key, default=None):
         return self.cw_attr_cache.get(key, default)