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
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Romain Courteaud
erp5
Commits
646bdc5a
Commit
646bdc5a
authored
May 30, 2019
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
websection wip
parent
aa00982f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
product/ERP5/Document/WebSection.py
product/ERP5/Document/WebSection.py
+2
-1
No files found.
product/ERP5/Document/WebSection.py
View file @
646bdc5a
...
...
@@ -451,7 +451,8 @@ class WebSection(Domain, DocumentExtensibleTraversableMixin):
def
_edit
(
self
,
**
kw
):
# XXX it is unclear if we should keep this behavior in other potential subclasses.
# Probably yes.
if
self
.
getPortalType
()
in
(
'Web Section'
,
'Web Site'
):
if
self
.
getPortalType
()
in
(
'Static Web Section'
,
'Static Web Site'
,
'Web Section'
,
'Web Site'
):
if
getattr
(
self
,
'__before_traverse__'
,
None
)
is
None
:
# migrate beforeTraverse hook if missing
handle
=
self
.
meta_type
+
'/'
+
self
.
getId
()
...
...
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