entity.py
changeset 6498 0ad62d6b6f8e
parent 6467 869813c2dd40
child 6499 c4123c741c66
equal deleted inserted replaced
6497:84fbd09f8c6b 6498:0ad62d6b6f8e
  1094             return self
  1094             return self
  1095         return eobj.cw_attr_value(self._attrname)
  1095         return eobj.cw_attr_value(self._attrname)
  1096 
  1096 
  1097     @deprecated('[3.10] use entity.cw_attr_cache[attr] = value')
  1097     @deprecated('[3.10] use entity.cw_attr_cache[attr] = value')
  1098     def __set__(self, eobj, value):
  1098     def __set__(self, eobj, value):
  1099         eobj.cw_attr_cache[self._attrname] = value
  1099         if hasattr(eobj, 'cw_edited') and not eobj.cw_edited.saved:
       
  1100             eobj.cw_edited[self._attrname] = value
       
  1101         else:
       
  1102             eobj.cw_attr_cache[self._attrname] = value
  1100 
  1103 
  1101 
  1104 
  1102 class Relation(object):
  1105 class Relation(object):
  1103     """descriptor that controls schema relation access"""
  1106     """descriptor that controls schema relation access"""
  1104 
  1107