Commit b3de8c77 authored by Tatuya Kamada's avatar Tatuya Kamada

Cosmetic: Remove useless spaces, remove '\' on sequence.

parent 29ab2b9d
......@@ -941,7 +941,7 @@ class ObjectTemplateItem(BaseTemplateItem):
This situation triggers a FATAL problem on SQLCatalog.catalogObjectList
when upgrading a broken path by ObjectTemplateItem with BusinessTemplate.
We often get this problem when we are upgrading a quite old ERP5 site
to new one, as several old classes may be already removed/replaced
to new one, as several old classes may be already removed/replaced
in the file system, thus several objects tend to be broken.
Keyword arguments:
......@@ -958,10 +958,10 @@ class ObjectTemplateItem(BaseTemplateItem):
class fakeobject:
def __init__(self, path):
self._physical_path = tuple(path.split('/'))
self._physical_path = tuple(path.split('/'))
def getPhysicalPath(self):
return self._physical_path
def recursiveUnindex(catalog, item_path, root_document_path):
# search the object + sub-objects
result = catalog(relative_url=(item_path,
......
......@@ -7053,41 +7053,41 @@ class TestBusinessTemplate(BusinessTemplateMixin):
self.organisation_amount = 2
self.email_amount = 2
sequence_list = SequenceList()
sequence_string = '\
CreateOrganisation \
CreateNewBusinessTemplate \
UseExportBusinessTemplate \
AddOrganisationToBusinessTemplate \
Tic \
BuildBusinessTemplate \
SaveBusinessTemplate \
Tic \
RemoveOrganisation \
RemoveBusinessTemplate \
RemoveAllTrashBins \
Tic \
ImportBusinessTemplate \
UseImportBusinessTemplate \
InstallBusinessTemplate \
Tic \
CheckOrganisationRestored\
ModifyOrganisation \
CreateNewBusinessTemplate \
UseExportBusinessTemplate \
AddOrganisationToBusinessTemplate \
BuildBusinessTemplate \
SaveBusinessTemplate \
RevertOrganisation \
Tic \
CheckOrganisationRestored \
RewriteWithBrokenOrganisation \
Tic \
ImportBusinessTemplate \
UseImportBusinessTemplate \
InstallBusinessTemplate \
Tic \
CheckOrganisationModified \
'
sequence_string = """
CreateOrganisation
CreateNewBusinessTemplate
UseExportBusinessTemplate
AddOrganisationToBusinessTemplate
Tic
BuildBusinessTemplate
SaveBusinessTemplate
Tic
RemoveOrganisation
RemoveBusinessTemplate
RemoveAllTrashBins
Tic
ImportBusinessTemplate
UseImportBusinessTemplate
InstallBusinessTemplate
Tic
CheckOrganisationRestored
ModifyOrganisation
CreateNewBusinessTemplate
UseExportBusinessTemplate
AddOrganisationToBusinessTemplate
BuildBusinessTemplate
SaveBusinessTemplate
RevertOrganisation
Tic
CheckOrganisationRestored
RewriteWithBrokenOrganisation
Tic
ImportBusinessTemplate
UseImportBusinessTemplate
InstallBusinessTemplate
Tic
CheckOrganisationModified
"""
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
......
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