Commit 6903eb8d authored by Łukasz Nowak's avatar Łukasz Nowak

- do not play with sequence strings as mixins will provide better code optimisation


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@45293 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b8304ad7
...@@ -3340,17 +3340,6 @@ class BusinessTemplateMixin(ERP5TypeTestCase, LogInterceptor): ...@@ -3340,17 +3340,6 @@ class BusinessTemplateMixin(ERP5TypeTestCase, LogInterceptor):
self.assertEqual(os.path.basename(sequence['document_path']), self.assertEqual(os.path.basename(sequence['document_path']),
os.path.basename(sequence['test_path'])) os.path.basename(sequence['test_path']))
save_current_business_template_sequence_string = '\
CheckNotInstalledInstallationState \
BuildBusinessTemplate \
CheckBuiltBuildingState \
CheckNotInstalledInstallationState \
CheckObjectPropertiesInBusinessTemplate \
SaveBusinessTemplate \
CheckBuiltBuildingState \
CheckNotInstalledInstallationState \
'
def stepRemovePropertySheetFromBusinessTemplate(self, sequence=None, **kw): def stepRemovePropertySheetFromBusinessTemplate(self, sequence=None, **kw):
""" """
Add Property Sheet to Business Template Add Property Sheet to Business Template
...@@ -6994,7 +6983,14 @@ class TestBusinessTemplate(BusinessTemplateMixin): ...@@ -6994,7 +6983,14 @@ class TestBusinessTemplate(BusinessTemplateMixin):
UseExportBusinessTemplate \ UseExportBusinessTemplate \
AddTestToBusinessTemplate \ AddTestToBusinessTemplate \
CheckModifiedBuildingState \ CheckModifiedBuildingState \
' + self.save_current_business_template_sequence_string + '\ CheckNotInstalledInstallationState \
BuildBusinessTemplate \
CheckBuiltBuildingState \
CheckNotInstalledInstallationState \
CheckObjectPropertiesInBusinessTemplate \
SaveBusinessTemplate \
CheckBuiltBuildingState \
CheckNotInstalledInstallationState \
RemoveTest \ RemoveTest \
RemoveBusinessTemplate \ RemoveBusinessTemplate \
RemoveAllTrashBins \ RemoveAllTrashBins \
...@@ -7188,7 +7184,14 @@ class TestDocumentTemplateItem(BusinessTemplateMixin): ...@@ -7188,7 +7184,14 @@ class TestDocumentTemplateItem(BusinessTemplateMixin):
AddDocumentToBusinessTemplate \ AddDocumentToBusinessTemplate \
AddPropertySheetToBusinessTemplate \ AddPropertySheetToBusinessTemplate \
CheckModifiedBuildingState \ CheckModifiedBuildingState \
' + self.save_current_business_template_sequence_string + '\ CheckNotInstalledInstallationState \
BuildBusinessTemplate \
CheckBuiltBuildingState \
CheckNotInstalledInstallationState \
CheckObjectPropertiesInBusinessTemplate \
SaveBusinessTemplate \
CheckBuiltBuildingState \
CheckNotInstalledInstallationState \
RemoveDocument \ RemoveDocument \
RemovePropertySheet \ RemovePropertySheet \
RemoveBusinessTemplate \ RemoveBusinessTemplate \
...@@ -7214,7 +7217,14 @@ class TestDocumentTemplateItem(BusinessTemplateMixin): ...@@ -7214,7 +7217,14 @@ class TestDocumentTemplateItem(BusinessTemplateMixin):
CheckPropertySheetMigration \ CheckPropertySheetMigration \
\ \
CheckDraftBuildingState \ CheckDraftBuildingState \
' + self.save_current_business_template_sequence_string + '\ CheckNotInstalledInstallationState \
BuildBusinessTemplate \
CheckBuiltBuildingState \
CheckNotInstalledInstallationState \
CheckObjectPropertiesInBusinessTemplate \
SaveBusinessTemplate \
CheckBuiltBuildingState \
CheckNotInstalledInstallationState \
RemoveBusinessTemplate \ RemoveBusinessTemplate \
Tic \ Tic \
CreatePropertySheet \ CreatePropertySheet \
...@@ -7258,7 +7268,14 @@ class TestTestTemplateItem(TestDocumentTemplateItem): ...@@ -7258,7 +7268,14 @@ class TestTestTemplateItem(TestDocumentTemplateItem):
AddDocumentToBusinessTemplate \ AddDocumentToBusinessTemplate \
AddTestToBusinessTemplate \ AddTestToBusinessTemplate \
CheckModifiedBuildingState \ CheckModifiedBuildingState \
' + self.save_current_business_template_sequence_string + '\ CheckNotInstalledInstallationState \
BuildBusinessTemplate \
CheckBuiltBuildingState \
CheckNotInstalledInstallationState \
CheckObjectPropertiesInBusinessTemplate \
SaveBusinessTemplate \
CheckBuiltBuildingState \
CheckNotInstalledInstallationState \
RemoveDocument \ RemoveDocument \
RemoveTest \ RemoveTest \
RemoveBusinessTemplate \ RemoveBusinessTemplate \
...@@ -7280,7 +7297,14 @@ class TestTestTemplateItem(TestDocumentTemplateItem): ...@@ -7280,7 +7297,14 @@ class TestTestTemplateItem(TestDocumentTemplateItem):
\ \
RemoveTestFromBusinessTemplate \ RemoveTestFromBusinessTemplate \
CheckModifiedBuildingState \ CheckModifiedBuildingState \
' + self.save_current_business_template_sequence_string + '\ CheckNotInstalledInstallationState \
BuildBusinessTemplate \
CheckBuiltBuildingState \
CheckNotInstalledInstallationState \
CheckObjectPropertiesInBusinessTemplate \
SaveBusinessTemplate \
CheckBuiltBuildingState \
CheckNotInstalledInstallationState \
ImportBusinessTemplate \ ImportBusinessTemplate \
UseImportBusinessTemplate \ UseImportBusinessTemplate \
CheckBuiltBuildingState \ CheckBuiltBuildingState \
......
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