Commit dc047405 authored by wenjie.zheng's avatar wenjie.zheng

improve politesses 3

parent 0d03838b
...@@ -5817,7 +5817,6 @@ Business Template is a set of definitions, such as skins, portal types and categ ...@@ -5817,7 +5817,6 @@ Business Template is a set of definitions, such as skins, portal types and categ
bt_portal_types_id_list = list(self.getTemplatePortalTypeIdList()) bt_portal_types_id_list = list(self.getTemplatePortalTypeIdList())
bt_portal_type_roles_list = list(self.getTemplatePortalTypeRoleList()) bt_portal_type_roles_list = list(self.getTemplatePortalTypeRoleList())
bt_wf_chain_list = list(self.getTemplatePortalTypeWorkflowChainList()) bt_wf_chain_list = list(self.getTemplatePortalTypeWorkflowChainList())
Base_translateString = self.Base_translateString
for id in bt_portal_types_id_list: for id in bt_portal_types_id_list:
portal_type = ttool.getTypeInfo(id) portal_type = ttool.getTypeInfo(id)
...@@ -5865,7 +5864,7 @@ Business Template is a set of definitions, such as skins, portal types and categ ...@@ -5865,7 +5864,7 @@ Business Template is a set of definitions, such as skins, portal types and categ
for act_id in action_list: for act_id in action_list:
if act_id is None: if act_id is None:
return (1, Base_translateString( return (1, self.Base_translateString(
"ERROR: An action has an empty id on portal_type ${id}", "ERROR: An action has an empty id on portal_type ${id}",
mapping=dict(id=id))) mapping=dict(id=id)))
action_id = id+' | '+act_id action_id = id+' | '+act_id
......
...@@ -1523,7 +1523,7 @@ class BusinessTemplateMixin(ERP5TypeTestCase, LogInterceptor): ...@@ -1523,7 +1523,7 @@ class BusinessTemplateMixin(ERP5TypeTestCase, LogInterceptor):
self.assertTrue(bt is not None) self.assertTrue(bt is not None)
result, message = bt.getPortalTypesProperties() result, message = bt.getPortalTypesProperties()
self.assertEqual(result, 1) self.assertEqual(result, 1)
def stepCreateSecondAction(self, sequence=None, **kw): def stepCreateSecondAction(self, sequence=None, **kw):
""" """
Create a second action Create a second action
......
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