web/formfields.py
changeset 4229 1c8e92afb94b
parent 4228 861f20659254
child 4241 da919ea92880
equal deleted inserted replaced
4228:861f20659254 4229:1c8e92afb94b
   342                 return True
   342                 return True
   343             # if it's a non final relation, we need the eids
   343             # if it's a non final relation, we need the eids
   344             if isinstance(previous_value, tuple):
   344             if isinstance(previous_value, tuple):
   345                 # widget should return a set of untyped eids
   345                 # widget should return a set of untyped eids
   346                 previous_value = set(unicode(e.eid) for e in previous_value)
   346                 previous_value = set(unicode(e.eid) for e in previous_value)
   347             if form.edited_entity.has_eid() and (previous_value == self.process_form_value(form)):
   347             try:
       
   348                 new_value = self.process_form_value(form)
       
   349             except ProcessFormError:
       
   350                 return True
       
   351             if form.edited_entity.has_eid() and previous_value == new_value:
   348                 return False # not modified
   352                 return False # not modified
   349             return True
   353             return True
   350         return False
   354         return False
   351 
   355 
   352     def process_form_value(self, form):
   356     def process_form_value(self, form):