[entity] add .clear() for bw compat
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 11 Jun 2010 08:39:21 +0200
changeset 5728 12d3da7b3bcf
parent 5727 29afb9e715bb
child 5736 375819ec7d43
[entity] add .clear() for bw compat
entity.py
--- 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)