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
...@@ -2,10 +2,7 @@ ...@@ -2,10 +2,7 @@
<ZopeData> <ZopeData>
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/> <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</tuple>
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
...@@ -68,9 +65,9 @@ def getInlinePage(reference, language):\n ...@@ -68,9 +65,9 @@ def getInlinePage(reference, language):\n
return None\n return None\n
\n \n
from Products.ERP5Type.Cache import CachingMethod\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 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 language = context.Localizer.get_selected_language()\n
return getInlinePage(reference, language)\n return getInlinePage(reference, language)\n
</string> </value> </string> </value>
...@@ -115,7 +112,7 @@ return getInlinePage(reference, language)\n ...@@ -115,7 +112,7 @@ return getInlinePage(reference, language)\n
<string>CachingMethod</string> <string>CachingMethod</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>web_site_path</string> <string>web_site_url</string>
<string>language</string> <string>language</string>
</tuple> </tuple>
</value> </value>
......
Copyright (c) 2006,2008 Nexedi SARL Copyright (c) 2006-2010 Nexedi SA
\ No newline at end of file \ No newline at end of file
971 972
\ No newline at end of file \ 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