should skip INTERNAL_FIELD_VALUE
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 13 Jan 2010 15:59:31 +0100
changeset 4227 39f01be4a6c5
parent 4226 67dd296f864d
child 4228 861f20659254
should skip INTERNAL_FIELD_VALUE
web/formfields.py
--- a/web/formfields.py	Wed Jan 13 15:57:57 2010 +0100
+++ b/web/formfields.py	Wed Jan 13 15:59:31 2010 +0100
@@ -818,7 +818,8 @@
             values = (values,)
         eids = set()
         for eid in values:
-            if not eid: # AutoCompletionWidget XXX deal with this in the widget
+            # XXX 'not eid' for AutoCompletionWidget, deal with this in the widget
+            if not eid or eid == INTERNAL_FIELD_VALUE:
                 continue
             typed_eid = form.actual_eid(eid)
             if typed_eid is None: