[facet] only String attributes have internationalizable property
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 02 Nov 2010 08:14:29 +0100
changeset 6662 8862bf4a6dd4
parent 6660 f5a018f330ac
child 6663 6e4f16827048
[facet] only String attributes have internationalizable property
web/facet.py
--- a/web/facet.py	Fri Oct 29 00:03:48 2010 +0200
+++ b/web/facet.py	Tue Nov 02 08:14:29 2010 +0100
@@ -543,7 +543,7 @@
             eschema = self._cw.vreg.schema.rschema(self.rtype).objects()[0]
         else:
             eschema = self._cw.vreg.schema.rschema(self.rtype).subjects()[0]
-        return eschema.rdef(self.target_attr).internationalizable
+        return getattr(eschema.rdef(self.target_attr), 'internationalizable', False)
 
     @property
     def no_relation(self):