Commit de4bfd80 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

register current web site physical path for later URL generation in...

register current web site physical path for later URL generation in WebSection.__call__() too, otherwise it is not set in accessing web site root, and it's default document's absolute_url() value is 'http://host/erp5/web_page_module/page_id' instead of 'http://host/erp5/web_site_module/site_id/web_page_module/page_id'


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27163 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 45fbd1aa
...@@ -169,6 +169,9 @@ class WebSection(Domain, PermanentURLMixIn): ...@@ -169,6 +169,9 @@ class WebSection(Domain, PermanentURLMixIn):
We use REQUEST parameters so that they are reset for every We use REQUEST parameters so that they are reset for every
Web transaction and can be accessed from widgets. Web transaction and can be accessed from widgets.
""" """
# Register current web site physical path for later URL generation
if self.REQUEST.get(self.web_section_key, MARKER) is MARKER:
self.REQUEST[self.web_section_key] = self.getPhysicalPath()
self.REQUEST.set('current_web_section', self) self.REQUEST.set('current_web_section', self)
if not self.REQUEST.get('editable_mode') and not self.REQUEST.get('ignore_layout'): if not self.REQUEST.get('editable_mode') and not self.REQUEST.get('ignore_layout'):
# Try to use a custom renderer if any # Try to use a custom renderer if any
......
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