Commit 6bc92722 authored by Fabien Morin's avatar Fabien Morin

in case of non-Module or non-*Tool portal_types, sometimes, we may want to not

 translate it. So it can't be unit-tested


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29622 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e4f6b4f2
...@@ -171,11 +171,6 @@ class TestXHTML(ERP5TypeTestCase): ...@@ -171,11 +171,6 @@ class TestXHTML(ERP5TypeTestCase):
if v.getDomainName() != 'erp5_ui': if v.getDomainName() != 'erp5_ui':
error_list.append('"%s" should use erp5_ui' % \ error_list.append('"%s" should use erp5_ui' % \
portal_type.getId()) portal_type.getId())
else:
for k, v in portal_type.getPropertyTranslationDomainDict().items():
if v.getDomainName() != 'erp5_content':
error_list.append('"%s" should use erp5_content' % \
portal_type.getId())
if error_list: if error_list:
message = '\nBad portal_type domain translation list\n' message = '\nBad portal_type domain translation list\n'
for error in error_list: for error in error_list:
......
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