server/edition.py
changeset 8493 25da1e5c7c50
parent 7471 bf9443f8725f
child 8494 1527b012802f
equal deleted inserted replaced
8492:8ec7cc28b501 8493:25da1e5c7c50
    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)