Commit d04d29f9 authored by Yusei Tahara's avatar Yusei Tahara

_property_domain_dict may not exist.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32896 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5b293b1c
......@@ -93,6 +93,9 @@ class TranslationProviderBase(object):
id='%s._updateInitialPropertyTranslationDomainDict' % self.getId(),
cache_factory='erp5_ui_long')()
if getattr(self, '_property_domain_dict', None) is None:
return {}
else:
return dict((k, v.__of__(self))
for k, v in self._property_domain_dict.iteritems())
......
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