Commit 68090e10 authored by Ayush Tiwari's avatar Ayush Tiwari

bt5_config: Add Business Manager as allowed_type for template tool [2]

parent ca49cdbd
...@@ -101,7 +101,11 @@ class TemplateTool (BaseTool): ...@@ -101,7 +101,11 @@ class TemplateTool (BaseTool):
title = 'Template Tool' title = 'Template Tool'
meta_type = 'ERP5 Template Tool' meta_type = 'ERP5 Template Tool'
portal_type = 'Template Tool' portal_type = 'Template Tool'
allowed_types = ('ERP5 Business Template', 'ERP5 Business Package') allowed_types = (
'ERP5 Business Template',
'ERP5 Business Package',
'ERP5 Business Manager',
)
# This stores information on repositories. # This stores information on repositories.
repository_dict = {} repository_dict = {}
...@@ -1632,6 +1636,11 @@ class TemplateTool (BaseTool): ...@@ -1632,6 +1636,11 @@ class TemplateTool (BaseTool):
final_path_item.install() final_path_item.install()
final_prop_item.install() final_prop_item.install()
security.declareProtected(Permissions.ManagePortal,
'installMultipleBusinessManager')
def installMultipleBusinessManager(self, bm_list):
pass
security.declareProtected(Permissions.ManagePortal, security.declareProtected(Permissions.ManagePortal,
'getBusinessTemplateUrl') 'getBusinessTemplateUrl')
def getBusinessTemplateUrl(self, base_url_list, bt5_title): def getBusinessTemplateUrl(self, base_url_list, bt5_title):
......
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