Commit 50c2d394 authored by Jérome Perrin's avatar Jérome Perrin

HACK web: support editing ERP5 python scripts from portal_skins in ERP5JS

see discussion on nexedi/erp5!1422 (comment 134105)
parent f58792eb
......@@ -120,6 +120,9 @@ class WebSection(Domain, DocumentExtensibleTraversableMixin):
document = None
try:
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:
not_found_page_ref = self.getLayoutProperty('layout_not_found_page_reference')
if not_found_page_ref:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment