equal
deleted
inserted
replaced
104 skip_security |
104 skip_security |
105 """ |
105 """ |
106 assert not self.saved, 'too late to modify edited attributes' |
106 assert not self.saved, 'too late to modify edited attributes' |
107 super(EditedEntity, self).__setitem__(attr, value) |
107 super(EditedEntity, self).__setitem__(attr, value) |
108 self.entity.cw_attr_cache[attr] = value |
108 self.entity.cw_attr_cache[attr] = value |
|
109 if self.entity._cw.vreg.schema.rschema(attr).final: |
|
110 self.entity._cw_dont_cache_attribute(attr) |
109 |
111 |
110 def oldnewvalue(self, attr): |
112 def oldnewvalue(self, attr): |
111 """returns the couple (old attr value, new attr value) |
113 """returns the couple (old attr value, new attr value) |
112 |
114 |
113 NOTE: will only work in a before_update_entity hook |
115 NOTE: will only work in a before_update_entity hook |