3.6 remove deprecation warning
authorPierre-Yves David <pierre-yves.david@logilab.fr>
Fri, 18 Dec 2009 15:10:57 +0100
changeset 4147 52fe79a98b21
parent 4146 39648619f3d8
child 4149 ecde9f78a080
3.6 remove deprecation warning
entities/__init__.py
--- a/entities/__init__.py	Fri Dec 18 15:10:38 2009 +0100
+++ b/entities/__init__.py	Fri Dec 18 15:10:57 2009 +0100
@@ -93,8 +93,7 @@
         # check if entities has internationalizable attributes
         # XXX one is enough or check if all String attributes are internationalizable?
         for rschema, attrschema in self.e_schema.attribute_definitions():
-            if rschema.rproperty(self.e_schema, attrschema,
-                                 'internationalizable'):
+            if rschema.rdef(self.e_schema, attrschema).internationalizable:
                 return self._cw._(self._cw.user.property_value('ui.language'))
         return self._cw._(self._cw.vreg.property_value('ui.language'))