[form] vocab function must now return values as unicode
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 06 Jul 2010 19:31:50 +0200
changeset 5911 47216d37bb3d
parent 5910 432c657ebfec
child 5912 ff916bf2eba0
[form] vocab function must now return values as unicode
web/formfields.py
--- a/web/formfields.py	Tue Jul 06 17:19:30 2010 +0200
+++ b/web/formfields.py	Tue Jul 06 19:31:50 2010 +0200
@@ -1002,7 +1002,7 @@
         if entity.eid in done:
             continue
         done.add(entity.eid)
-        res.append((entity.view('combobox'), entity.eid))
+        res.append((entity.view('combobox'), unicode(entity.eid)))
     return res