equal
deleted
inserted
replaced
916 self._cw_adapters_cache = {} |
916 self._cw_adapters_cache = {} |
917 else: |
917 else: |
918 assert role |
918 assert role |
919 self._cw_related_cache.pop('%s_%s' % (rtype, role), None) |
919 self._cw_related_cache.pop('%s_%s' % (rtype, role), None) |
920 |
920 |
921 def clear_all_caches(self): # XXX cw_clear_all_caches |
921 def cw_clear_all_caches(self): |
922 """flush all caches on this entity. Further attributes/relations access |
922 """flush all caches on this entity. Further attributes/relations access |
923 will triggers new database queries to get back values. |
923 will triggers new database queries to get back values. |
924 |
924 |
925 If you use custom caches on your entity class (take care to @cached!), |
925 If you use custom caches on your entity class (take care to @cached!), |
926 you should override this method to clear them as well. |
926 you should override this method to clear them as well. |
989 for rqlexpr in self.e_schema.get_rqlexprs(action): |
989 for rqlexpr in self.e_schema.get_rqlexprs(action): |
990 self._cw.local_perm_cache.pop((rqlexpr.eid, (('x', self.eid),)), None) |
990 self._cw.local_perm_cache.pop((rqlexpr.eid, (('x', self.eid),)), None) |
991 |
991 |
992 # deprecated stuff ######################################################### |
992 # deprecated stuff ######################################################### |
993 |
993 |
|
994 @deprecated('[3.13] use entity.cw_clear_all_caches()') |
|
995 def clear_all_caches(self): |
|
996 return self.cw_clear_all_caches() |
|
997 |
994 @deprecated('[3.9] use entity.cw_attr_value(attr)') |
998 @deprecated('[3.9] use entity.cw_attr_value(attr)') |
995 def get_value(self, name): |
999 def get_value(self, name): |
996 return self.cw_attr_value(name) |
1000 return self.cw_attr_value(name) |
997 |
1001 |
998 @deprecated('[3.9] use entity.cw_delete()') |
1002 @deprecated('[3.9] use entity.cw_delete()') |