Commit c34a0ebb authored by Yoshinori Okuji's avatar Yoshinori Okuji

Add more into factory type information.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1109 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 940bc32a
......@@ -320,7 +320,7 @@ class BusinessTemplate(XMLObject):
{ 'id' : portal_type
, 'meta_type' : meta_type
, 'description' : """\
Une ligne tarifaire."""
Business Template is a set of definitions, such as skins, portal types and categories. This is used to set up a new ERP5 site very efficiently."""
, 'icon' : 'order_line_icon.gif'
, 'product' : 'ERP5Type'
, 'factory' : 'addBusinessTemplate'
......@@ -366,6 +366,41 @@ Une ligne tarifaire."""
, 'permissions' : (
Permissions.TranslateContent, )
}
, { 'id' : 'update'
, 'name' : 'Update Business Template'
, 'category' : 'object_action'
, 'action' : 'BusinessTemplate_update'
, 'permissions' : (
Permissions.ModifyPortalContent, )
}
, { 'id' : 'install'
, 'name' : 'Install Business Template'
, 'category' : 'object_action'
, 'action' : 'BusinessTemplate_install'
, 'permissions' : (
Permissions.ManagePortal, )
}
, { 'id' : 'build'
, 'name' : 'Build Business Template'
, 'category' : 'object_action'
, 'action' : 'BusinessTemplate_build'
, 'permissions' : (
Permissions.ManagePortal, )
}
, { 'id' : 'save'
, 'name' : 'Save Business Template'
, 'category' : 'object_action'
, 'action' : 'BusinessTemplate_save'
, 'permissions' : (
Permissions.ManagePortal, )
}
, { 'id' : 'export'
, 'name' : 'Export Business Template'
, 'category' : 'object_action'
, 'action' : 'BusinessTemplate_export'
, 'permissions' : (
Permissions.ManagePortal, )
}
)
}
......@@ -804,7 +839,7 @@ Une ligne tarifaire."""
LOG('installPortalTypes, default_chain: ',0,default_chain)
chain_dict['chain_%s' % o.portal_type] = o.workflow_chain
portal_workflow.manage_changeWorkflows(default_chain,props=chain_dict)
def _getChainByType(self):
"""
This is used in order to construct the full list
......@@ -834,5 +869,5 @@ Une ligne tarifaire."""
default_chain=', '.join(self._default_chain)
return (default_chain, new_dict)
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