Use I18n "query_attribute" in content renderer
authorThierry Florac <thierry.florac@onf.fr>
Wed, 13 Jun 2018 12:35:03 +0200
changeset 640 6481a7fbde6c
parent 639 5e37429b7de2
child 641 771482d50c94
Use I18n "query_attribute" in content renderer
src/pyams_content/features/renderer/skin/__init__.py
--- a/src/pyams_content/features/renderer/skin/__init__.py	Wed Jun 13 11:34:00 2018 +0200
+++ b/src/pyams_content/features/renderer/skin/__init__.py	Wed Jun 13 12:35:03 2018 +0200
@@ -55,7 +55,7 @@
             i18n = II18n(self.context, None)
             if i18n is not None:
                 for attr in self.i18n_context_attrs:
-                    setattr(self, attr, i18n.get_attribute(attr, lang=self.language, request=self.request))
+                    setattr(self, attr, i18n.query_attribute(attr, lang=self.language, request=self.request))
 
     render = get_view_template()