Commit 95a88765 authored by Ayush Tiwari's avatar Ayush Tiwari

erp5_core: Do not migrate erp5_core as the migration is full of errors.

We do not configure portal_actions and views properly hence there are lot many bugs in views
after installation.
parent cfe9baf6
...@@ -2225,11 +2225,8 @@ class ERP5Generator(PortalGenerator): ...@@ -2225,11 +2225,8 @@ class ERP5Generator(PortalGenerator):
tool = p.portal_workflow tool = p.portal_workflow
tool.manage_delObjects(filter(tool.hasObject, manager_workflow_list)) tool.manage_delObjects(filter(tool.hasObject, manager_workflow_list))
tool.manage_delObjects(filter(tool.hasObject, workflow_list)) tool.manage_delObjects(filter(tool.hasObject, workflow_list))
self.bootstrap_bm(tool, 'erp5_core', ( self.bootstrap(tool, 'erp5_core', 'WorkflowTemplateItem', workflow_list)
'portal_workflow/business_template_installation_workflow', tool.setChainForPortalTypes(('Business Template',), workflow_list)
'portal_workflow/business_template_building_workflow',
'portal_types/Business Template#type_workflow_list',
))
self.bootstrap(tool, 'erp5_business_package', 'WorkflowTemplateItem', ( self.bootstrap(tool, 'erp5_business_package', 'WorkflowTemplateItem', (
'business_manager_building_workflow', 'business_manager_building_workflow',
'business_manager_installation_workflow', 'business_manager_installation_workflow',
...@@ -2388,7 +2385,7 @@ class ERP5Generator(PortalGenerator): ...@@ -2388,7 +2385,7 @@ class ERP5Generator(PortalGenerator):
""" """
template_tool = p.portal_templates template_tool = p.portal_templates
if template_tool.getInstalledBusinessTemplate('erp5_core') is None: if template_tool.getInstalledBusinessTemplate('erp5_core') is None:
for bt in ('erp5_core', 'erp5_business_package', 'erp5_property_sheets', for bt in ('erp5_property_sheets', 'erp5_core', 'erp5_business_package',
): ):
if not bt: if not bt:
continue continue
......
...@@ -1322,7 +1322,7 @@ class TemplateTool (BaseTool): ...@@ -1322,7 +1322,7 @@ class TemplateTool (BaseTool):
property_dict_list.append(bm_dict_2) property_dict_list.append(bm_dict_2)
property_dict_list.append(bm_dict_3) property_dict_list.append(bm_dict_3)
property_dict_list.append(bm_dict_4) property_dict_list.append(bm_dict_4)
property_dict_list.append(bm_dict_5) #property_dict_list.append(bm_dict_5)
self.repository_dict[repository] = tuple(property_dict_list) self.repository_dict[repository] = tuple(property_dict_list)
......
...@@ -62,18 +62,16 @@ class PropertySheetTool(BaseTool): ...@@ -62,18 +62,16 @@ class PropertySheetTool(BaseTool):
def _bootstrap(self): def _bootstrap(self):
bt_name = 'erp5_property_sheets' bt_name = 'erp5_property_sheets'
from Products.ERP5.ERP5Site import ERP5Generator from Products.ERP5.ERP5Site import ERP5Generator
ERP5Generator.bootstrap_bm(self, bt_name, ( ERP5Generator.bootstrap(self, bt_name, 'PropertySheetTemplateItem', (
'portal_property_sheets/BaseType', 'BaseType',
'portal_property_sheets/BusinessTemplate', 'BusinessTemplate',
'portal_property_sheets/Folder', 'Folder',
'portal_property_sheets/SimpleItem', 'SimpleItem',
'portal_property_sheets/Version', 'Version',
'portal_property_sheets/Comment', 'Comment',
# the following ones are required to upgrade an existing site 'Reference',
'portal_property_sheets/Reference', 'BaseCategory',
'portal_property_sheets/BaseCategory', 'SQLIdGenerator',))
'portal_property_sheets/SQLIdGenerator',
))
def install(): def install():
from ZPublisher.BaseRequest import RequestContainer from ZPublisher.BaseRequest import RequestContainer
from Products.ERP5Type.Globals import get_request from Products.ERP5Type.Globals import get_request
......
...@@ -124,13 +124,11 @@ class TypesTool(TypeProvider): ...@@ -124,13 +124,11 @@ class TypesTool(TypeProvider):
def _bootstrap(self): def _bootstrap(self):
from Products.ERP5.ERP5Site import ERP5Generator from Products.ERP5.ERP5Site import ERP5Generator
ERP5Generator.bootstrap_bm(self, 'erp5_core', ( ERP5Generator.bootstrap(self, 'erp5_core', 'PortalTypeTemplateItem', (
'portal_types/Business Template', 'Business Template',
'portal_types/Standard Property', 'Standard Property',
'portal_types/Acquired Property', 'Acquired Property',
# the following ones are required to upgrade an existing site 'Category Property'))
'portal_types/Category Property',
))
# Bootstrap Business Manager as it'll be needed while installation # Bootstrap Business Manager as it'll be needed while installation
ERP5Generator.bootstrap(self, 'erp5_business_package', 'PortalTypeTemplateItem', ( ERP5Generator.bootstrap(self, 'erp5_business_package', 'PortalTypeTemplateItem', (
'Business Manager', 'Business Manager',
......
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