hooks/integrity.py
changeset 2968 0e3460341023
parent 2901 8f4d495c94c2
child 3086 94ed8f0f0d14
equal deleted inserted replaced
2902:dd9f2dd02f85 2968:0e3460341023
   252     events = ('before_add_entity', 'before_update_entity',)
   252     events = ('before_add_entity', 'before_update_entity',)
   253 
   253 
   254     def __call__(self):
   254     def __call__(self):
   255         user = self.entity
   255         user = self.entity
   256         if 'login' in user.edited_attributes and user.login:
   256         if 'login' in user.edited_attributes and user.login:
   257             entity.login = entity.login.strip()
   257             user.login = user.login.strip()