Commit 0da3c137 authored by Fabien Morin's avatar Fabien Morin

improve the condition (thanks to kazuhiko review)


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29594 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a47bf004
...@@ -165,7 +165,8 @@ class TestXHTML(ERP5TypeTestCase): ...@@ -165,7 +165,8 @@ class TestXHTML(ERP5TypeTestCase):
portal_types_module = self.portal.portal_types portal_types_module = self.portal.portal_types
for portal_type in portal_types_module.contentValues(portal_type=\ for portal_type in portal_types_module.contentValues(portal_type=\
'Base Type'): 'Base Type'):
if 'Module' in portal_type.getTitle(): if portial_type.getTitle().endswith('Module') or
portial_type.getTitle().endswith('Tool'):
for k, v in portal_type.getPropertyTranslationDomainDict().items(): for k, v in portal_type.getPropertyTranslationDomainDict().items():
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' % \
......
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