web/formfields.py
changeset 5679 0f2ded880d01
parent 5676 aa04ccb8dd62
parent 5661 84ef08bbda3c
child 5697 ec1ce7198ef4
--- a/web/formfields.py	Mon Jun 07 12:39:15 2010 +0200
+++ b/web/formfields.py	Mon Jun 07 13:22:24 2010 +0200
@@ -439,9 +439,11 @@
             # attribute or relation
             return True
         # if it's a non final relation, we need the eids
-        if isinstance(previous_value, tuple):
+        # XXX underlying regression: getattr(ent, 'foo') used to return
+        #     a tuple, now we get a list
+        if isinstance(previous_value, (list, tuple)):
             # widget should return a set of untyped eids
-            previous_value = set(unicode(e.eid) for e in previous_value)
+            previous_value = set(e.eid for e in previous_value)
         try:
             new_value = self.process_form_value(form)
         except ProcessFormError: