Commit 63c7037a authored by wenjie.zheng's avatar wenjie.zheng Committed by Sebastien Robin

BusinessTemplate.py: remove unused modifications added during the developement.

parent 82fcc35c
...@@ -5862,10 +5862,6 @@ Business Template is a set of definitions, such as skins, portal types and categ ...@@ -5862,10 +5862,6 @@ Business Template is a set of definitions, such as skins, portal types and categ
bt_base_category_list.append(base_cat_id) bt_base_category_list.append(base_cat_id)
for act_id in action_list: for act_id in action_list:
if act_id is None:
return (1, self.Base_translateString(
"ERROR: An action has an empty id on portal_type ${id}",
mapping=dict(id=id)))
action_id = id+' | '+act_id action_id = id+' | '+act_id
if action_id not in bt_action_list: if action_id not in bt_action_list:
bt_action_list.append(action_id) bt_action_list.append(action_id)
...@@ -5890,7 +5886,6 @@ Business Template is a set of definitions, such as skins, portal types and categ ...@@ -5890,7 +5886,6 @@ Business Template is a set of definitions, such as skins, portal types and categ
self.setTemplatePortalTypePropertySheetList(bt_property_sheet_list) self.setTemplatePortalTypePropertySheetList(bt_property_sheet_list)
self.setTemplatePortalTypeBaseCategoryList(bt_base_category_list) self.setTemplatePortalTypeBaseCategoryList(bt_base_category_list)
self.setTemplateActionPathList(bt_action_list) self.setTemplateActionPathList(bt_action_list)
return (0, "")
def guessPortalTypes(self, **kw): def guessPortalTypes(self, **kw):
......
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