Commit 0585ee5a authored by Jérome Perrin's avatar Jérome Perrin

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

parent a558675c
......@@ -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':
return 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