equal
deleted
inserted
replaced
59 assert attr != 'eid' |
59 assert attr != 'eid' |
60 # don't add attribute into skip_security if already in edited |
60 # don't add attribute into skip_security if already in edited |
61 # attributes, else we may accidentaly skip a desired security check |
61 # attributes, else we may accidentaly skip a desired security check |
62 if attr not in self: |
62 if attr not in self: |
63 self.skip_security.add(attr) |
63 self.skip_security.add(attr) |
64 elif value != self[attr]: |
64 # mark attribute as needing purge by the client |
65 # also, if value differs, mark attribute as needing purge by the |
65 self.entity._cw_dont_cache_attribute(attr) |
66 # client |
|
67 self.entity._cw_dont_cache_attribute(attr) |
|
68 self.edited_attribute(attr, value) |
66 self.edited_attribute(attr, value) |
69 |
67 |
70 def __delitem__(self, attr): |
68 def __delitem__(self, attr): |
71 assert not self.saved, 'too late to modify edited attributes' |
69 assert not self.saved, 'too late to modify edited attributes' |
72 super(EditedEntity, self).__delitem__(attr) |
70 super(EditedEntity, self).__delitem__(attr) |