Commit ba2bc476 authored by wenjie.zheng's avatar wenjie.zheng Committed by Sebastien Robin

Translation.py: remove LOGs added for test by wenjie.

parent e201cc9f
......@@ -61,8 +61,6 @@ class TranslatedPropertyGetter(BaseGetter):
if self._warning:
LOG("ERP5Type Deprecated Getter Id:",0, self._id)
domain = instance.getProperty('%s_translation_domain' % self._property_id)
LOG("A. instance is '%s' _property_id is '%s' domain is '%s'"%(instance.getId(),self._property_id,domain), WARNING, ' in Translation.py')
if domain==TRANSLATION_DOMAIN_CONTENT_TRANSLATION:
if len(args) > 0:
default = args[0]
......@@ -81,7 +79,6 @@ class TranslatedPropertyGetter(BaseGetter):
return default
else:
value = instance.getProperty(self._property_id)
LOG("B. instance is '%s' _property_id is '%s' value is '%s'"%(instance.getId(),self._property_id, value), WARNING, ' in Translation.py')
if domain == '' or (value in ('', None)):
return value
localizer = instance.getPortalObject().Localizer
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment