entity.py
changeset 8509 e83b4a64ba29
parent 8494 1527b012802f
child 8525 c09feae04094
equal deleted inserted replaced
8505:dcd9bc1d1bca 8509:e83b4a64ba29
  1296         for rqlexpr in self.e_schema.get_rqlexprs(action):
  1296         for rqlexpr in self.e_schema.get_rqlexprs(action):
  1297             self._cw.local_perm_cache.pop((rqlexpr.eid, (('x', self.eid),)), None)
  1297             self._cw.local_perm_cache.pop((rqlexpr.eid, (('x', self.eid),)), None)
  1298 
  1298 
  1299     # deprecated stuff #########################################################
  1299     # deprecated stuff #########################################################
  1300 
  1300 
  1301     @deprecated('[3.15] use cw_set() instead')
  1301     @deprecated('[3.16] use cw_set() instead')
  1302     def set_attributes(self, **kwargs): # XXX cw_set_attributes
  1302     def set_attributes(self, **kwargs): # XXX cw_set_attributes
  1303         self.cw_set(**kwargs)
  1303         self.cw_set(**kwargs)
  1304 
  1304 
  1305     @deprecated('[3.15] use cw_set() instead')
  1305     @deprecated('[3.16] use cw_set() instead')
  1306     def set_relations(self, **kwargs): # XXX cw_set_relations
  1306     def set_relations(self, **kwargs): # XXX cw_set_relations
  1307         """add relations to the given object. To set a relation where this entity
  1307         """add relations to the given object. To set a relation where this entity
  1308         is the object of the relation, use 'reverse_'<relation> as argument name.
  1308         is the object of the relation, use 'reverse_'<relation> as argument name.
  1309 
  1309 
  1310         Values may be an entity or eid, a list of entities or eids, or None
  1310         Values may be an entity or eid, a list of entities or eids, or None