Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Jérome Perrin
erp5
Commits
b3de8c77
Commit
b3de8c77
authored
Oct 07, 2013
by
Tatuya Kamada
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cosmetic: Remove useless spaces, remove '\' on sequence.
parent
29ab2b9d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
38 deletions
+38
-38
product/ERP5/Document/BusinessTemplate.py
product/ERP5/Document/BusinessTemplate.py
+3
-3
product/ERP5/tests/testBusinessTemplate.py
product/ERP5/tests/testBusinessTemplate.py
+35
-35
No files found.
product/ERP5/Document/BusinessTemplate.py
View file @
b3de8c77
...
@@ -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
,
...
...
product/ERP5/tests/testBusinessTemplate.py
View file @
b3de8c77
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment