typo
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 18 Aug 2009 00:29:23 +0200
changeset 2896 1e7848c69be4
parent 2895 903bd3f89f80
child 2898 a485d80b8fcb
typo
hooks/integrity.py
--- a/hooks/integrity.py	Tue Aug 18 00:29:19 2009 +0200
+++ b/hooks/integrity.py	Tue Aug 18 00:29:23 2009 +0200
@@ -219,7 +219,7 @@
     def __call__(self):
         if self.event == 'before_delete_entity' and self.entity.name == 'owners':
             raise ValidationError(self.entity.eid, {None: self._cw._('can\'t be deleted')})
-        elif self.event == 'before_update_entity' and 'name' in self.entity.edited_attribute:
+        elif self.event == 'before_update_entity' and 'name' in self.entity.edited_attributes:
             newname = self.entity.pop('name')
             oldname = self.entity.name
             if oldname == 'owners' and newname != oldname: