Commit 82ac8dae authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

we should use absolute_url() instead of getPhysicalPath() to distinguish...

we should use absolute_url() instead of getPhysicalPath() to distinguish multiple virtual hosts. see http://www.erp5.org/HowToCreateANewWidget.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38276 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3da41a4f
No related merge requests found
......@@ -2,10 +2,7 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</tuple>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
</pickle>
<pickle>
<dictionary>
......@@ -68,9 +65,9 @@ def getInlinePage(reference, language):\n
return None\n
\n
from Products.ERP5Type.Cache import CachingMethod\n
web_site_path = context.getWebSectionValue().getPhysicalPath()\n
web_site_url = context.getWebSectionValue().absolute_url()\n
getInlinePage = CachingMethod(getInlinePage, \n
id=(\'WebSection_getInlinePageRenderer\', web_site_path))\n
id=(\'WebSection_getInlinePageRenderer\', web_site_url))\n
language = context.Localizer.get_selected_language()\n
return getInlinePage(reference, language)\n
</string> </value>
......@@ -115,7 +112,7 @@ return getInlinePage(reference, language)\n
<string>CachingMethod</string>
<string>_getattr_</string>
<string>context</string>
<string>web_site_path</string>
<string>web_site_url</string>
<string>language</string>
</tuple>
</value>
......
Copyright (c) 2006,2008 Nexedi SARL
\ No newline at end of file
Copyright (c) 2006-2010 Nexedi SA
\ No newline at end of file
971
\ No newline at end of file
972
\ 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