equal
deleted
inserted
replaced
1092 def __get__(self, eobj, eclass): |
1092 def __get__(self, eobj, eclass): |
1093 if eobj is None: |
1093 if eobj is None: |
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] assign to entity.cw_attr_cache[attr] or entity.cw_edited[attr]') |
1098 def __set__(self, eobj, value): |
1098 def __set__(self, eobj, value): |
1099 if hasattr(eobj, 'cw_edited') and not eobj.cw_edited.saved: |
1099 if hasattr(eobj, 'cw_edited') and not eobj.cw_edited.saved: |
1100 eobj.cw_edited[self._attrname] = value |
1100 eobj.cw_edited[self._attrname] = value |
1101 else: |
1101 else: |
1102 eobj.cw_attr_cache[self._attrname] = value |
1102 eobj.cw_attr_cache[self._attrname] = value |