branch | 3.5 |
changeset 2942 | 77ebdbe93cf8 |
parent 2941 | 196493bd099c |
child 2968 | 0e3460341023 |
child 3002 | a9d7eaa07475 |
--- a/entity.py Fri Aug 21 08:31:01 2009 +0200 +++ b/entity.py Fri Aug 21 08:31:25 2009 +0200 @@ -825,6 +825,11 @@ assert role self._related_cache.pop('%s_%s' % (rtype, role), None) + def clear_all_caches(self): + self.clear() + for rschema, _, role in self.e_schema.relation_definitions(): + self.clear_related_cache(rschema.type, role) + # raw edition utilities ################################################### def set_attributes(self, _cw_unsafe=False, **kwargs):