web/formfields.py
changeset 4228 861f20659254
parent 4227 39f01be4a6c5
child 4229 1c8e92afb94b
equal deleted inserted replaced
4227:39f01be4a6c5 4228:861f20659254
   339             except AttributeError:
   339             except AttributeError:
   340                 # fields with eidparam=True but not corresponding to an actual
   340                 # fields with eidparam=True but not corresponding to an actual
   341                 # attribute or relation
   341                 # attribute or relation
   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, list):
   344             if isinstance(previous_value, tuple):
   345                 # widget should return 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             if form.edited_entity.has_eid() and (previous_value == self.process_form_value(form)):
   348                 return False # not modified
   348                 return False # not modified
   349             return True
   349             return True
   350         return False
   350         return False