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,8 +93,11 @@ class TranslationProviderBase(object): ...@@ -93,8 +93,11 @@ class TranslationProviderBase(object):
id='%s._updateInitialPropertyTranslationDomainDict' % self.getId(), id='%s._updateInitialPropertyTranslationDomainDict' % self.getId(),
cache_factory='erp5_ui_long')() cache_factory='erp5_ui_long')()
return dict((k, v.__of__(self)) if getattr(self, '_property_domain_dict', None) is None:
for k, v in self._property_domain_dict.iteritems()) return {}
else:
return dict((k, v.__of__(self))
for k, v in self._property_domain_dict.iteritems())
security.declarePublic('getContentTranslationDomainPropertyNameList') security.declarePublic('getContentTranslationDomainPropertyNameList')
def getContentTranslationDomainPropertyNameList(self): def getContentTranslationDomainPropertyNameList(self):
......
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