related entities are returned as tuple since a few months ago
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 13 Jan 2010 16:00:06 +0100
changeset 4228 861f20659254
parent 4227 39f01be4a6c5
child 4229 1c8e92afb94b
related entities are returned as tuple since a few months ago
web/formfields.py
--- a/web/formfields.py	Wed Jan 13 15:59:31 2010 +0100
+++ b/web/formfields.py	Wed Jan 13 16:00:06 2010 +0100
@@ -341,8 +341,8 @@
                 # attribute or relation
                 return True
             # if it's a non final relation, we need the eids
-            if isinstance(previous_value, list):
-                # widget should return untyped eids
+            if isinstance(previous_value, tuple):
+                # widget should return a set of untyped eids
                 previous_value = set(unicode(e.eid) for e in previous_value)
             if form.edited_entity.has_eid() and (previous_value == self.process_form_value(form)):
                 return False # not modified