fix guess_field to handle non internationalizable definition
authorPierre-Yves David <pierre-yves.david@logilab.fr>
Tue, 08 Dec 2009 18:12:31 +0100
changeset 4069 5d149ba65dd0
parent 4068 8f559c00e724
child 4070 6e9f7abee4ef
fix guess_field to handle non internationalizable definition
web/formfields.py
--- a/web/formfields.py	Wed Dec 09 09:53:41 2009 +0100
+++ b/web/formfields.py	Tue Dec 08 18:12:31 2009 +0100
@@ -587,7 +587,7 @@
     if role == 'subject':
         targetschema = rdef.object
         if rschema.final:
-            if rdef.internationalizable:
+            if rdef.get('internationalizable'):
                 kwargs.setdefault('internationalizable', True)
             def get_default(form, es=eschema, rs=rschema):
                 return es.default(rs)