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
140
Merge Requests
140
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
50c2d394
Commit
50c2d394
authored
Jun 18, 2021
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
HACK web: support editing ERP5 python scripts from portal_skins in ERP5JS
see discussion on
nexedi/erp5!1422 (comment 134105)
parent
f58792eb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
bt5/erp5_web/DocumentTemplateItem/portal_components/document.erp5.WebSection.py
...emplateItem/portal_components/document.erp5.WebSection.py
+3
-0
No files found.
bt5/erp5_web/DocumentTemplateItem/portal_components/document.erp5.WebSection.py
View file @
50c2d394
...
@@ -120,6 +120,9 @@ class WebSection(Domain, DocumentExtensibleTraversableMixin):
...
@@ -120,6 +120,9 @@ class WebSection(Domain, DocumentExtensibleTraversableMixin):
document
=
None
document
=
None
try
:
try
:
document
=
DocumentExtensibleTraversableMixin
.
__bobo_traverse__
(
self
,
request
,
name
)
document
=
DocumentExtensibleTraversableMixin
.
__bobo_traverse__
(
self
,
request
,
name
)
# XXX rewrap in self so that we can edit python scripts from a web site with ERP5JS
if
name
==
'portal_skins'
:
document
=
aq_base
(
document
).
__of__
(
self
)
except
NotFound
:
except
NotFound
:
not_found_page_ref
=
self
.
getLayoutProperty
(
'layout_not_found_page_reference'
)
not_found_page_ref
=
self
.
getLayoutProperty
(
'layout_not_found_page_reference'
)
if
not_found_page_ref
:
if
not_found_page_ref
:
...
...
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