entity.py
changeset 5870 d3ec7c4bb373
parent 5797 7183f32fad13
child 5980 6dc04e75c8e1
equal deleted inserted replaced
5869:8a129b3a5aff 5870:d3ec7c4bb373
  1097 
  1097 
  1098     @deprecated('[3.9] use entity.cw_clear_relation_cache(rtype, role, rset)')
  1098     @deprecated('[3.9] use entity.cw_clear_relation_cache(rtype, role, rset)')
  1099     def clear_related_cache(self, rtype=None, role=None):
  1099     def clear_related_cache(self, rtype=None, role=None):
  1100         self.cw_clear_relation_cache(rtype, role)
  1100         self.cw_clear_relation_cache(rtype, role)
  1101 
  1101 
       
  1102     @deprecated('[3.9] use entity.cw_related_rql(rtype, [role, [targettypes]])')
       
  1103     def related_rql(self, rtype, role='subject', targettypes=None):
       
  1104         return self.cw_related_rql(rtype, role, targettypes)
       
  1105 
       
  1106 
  1102 # attribute and relation descriptors ##########################################
  1107 # attribute and relation descriptors ##########################################
  1103 
  1108 
  1104 class Attribute(object):
  1109 class Attribute(object):
  1105     """descriptor that controls schema attribute access"""
  1110     """descriptor that controls schema attribute access"""
  1106 
  1111