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
138
Merge Requests
138
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
6e6dbb01
Commit
6e6dbb01
authored
Nov 06, 2012
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix startup when CMFCategory product is installed before ERP5
parent
c6fa2e74
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
product/ERP5Type/Utils.py
product/ERP5Type/Utils.py
+9
-8
No files found.
product/ERP5Type/Utils.py
View file @
6e6dbb01
...
...
@@ -965,14 +965,15 @@ def registerDocumentClass(module_name, class_name):
if
old_value
:
if
class_name
==
'CategoryTool'
:
assert
module_name
==
'Products.CMFCategory.CategoryTool'
,
(
old_value
,
new_value
)
if
module_name
==
'Products.CMFCategory.CategoryTool'
:
LOG
(
'Utils'
,
WARNING
,
'Ignoring replacement of %s by %s'
%
(
old_value
,
new_value
))
"Ignoring replacement of %s by %s"
%
(
old_value
,
new_value
))
return
assert
module_name
==
'Products.ERP5.Tool.CategoryTool'
,
module_name
LOG
(
'Utils'
,
WARNING
,
"Replacing %s by %s"
%
(
old_value
,
new_value
))
else
:
raise
Exception
(
"Class %s and %s from different products have the "
"same name"
%
(
old_value
,
new_value
))
document_class_registry
[
class_name
]
=
new_value
def
initializeProduct
(
context
,
...
...
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