Commit a84e41e7 authored by Ivan Tyagov's avatar Ivan Tyagov

It is possible to guess Web Site value from REQUEST as well.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35618 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c0d80ee2
......@@ -108,7 +108,8 @@ except AttributeError:\n
\n
# add web sections document belongs too\n
if website is None:\n
website = context.getWebSiteValue() \n
website = context.getWebSiteValue() or context.REQUEST.get(\'current_web_site\')\n
\n
sections = []\n
for websection in website.getWebSectionValueList(context):\n
sections.append({\'title\': websection.getCompactTranslatedTitle(),\n
......
950
\ No newline at end of file
951
\ No newline at end of file
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