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