Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ayush Tiwari
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):
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
,
...
...
product/ERP5/tests/testBusinessTemplate.py
View file @
b3de8c77
...
...
@@ -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
)
...
...
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