# HG changeset patch # User Sylvain Thénault # Date 1276238361 -7200 # Node ID 12d3da7b3bcf7bb5218b7ddc42720a5cb69d87aa # Parent 29afb9e715bb998b3a6def229cf2d89854868337 [entity] add .clear() for bw compat diff -r 29afb9e715bb -r 12d3da7b3bcf 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)