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 self.entity._cw_dont_cache_attribute(attr) |
64 self.edited_attribute(attr, value) |
65 self.edited_attribute(attr, value) |
65 |
66 |
66 def __delitem__(self, attr): |
67 def __delitem__(self, attr): |
67 assert not self.saved, 'too late to modify edited attributes' |
68 assert not self.saved, 'too late to modify edited attributes' |
68 super(EditedEntity, self).__delitem__(attr) |
69 super(EditedEntity, self).__delitem__(attr) |