Commit 477a2236 authored by Yoshinori Okuji's avatar Yoshinori Okuji

2008-06-28 yo

* Use restrictedTraverse instead of getDocumentValue in WebSection_viewInlinePageRenderer, because we need an appropriate acquisition wrapper here.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22051 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0c082490
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
"""\n """\n
\n \n
def getInlinePage(reference, language):\n def getInlinePage(reference, language):\n
page = context.getDocumentValue(reference)\n page = context.restrictedTraverse(reference)\n
if page is not None:\n if page is not None:\n
return page.asStrippedHTML()\n return page.asStrippedHTML()\n
return None\n return None\n
...@@ -98,6 +98,12 @@ return getInlinePage(reference, language)\n ...@@ -98,6 +98,12 @@ return getInlinePage(reference, language)\n
<none/> <none/>
</value> </value>
</item> </item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>reference</string> </value> <value> <string>reference</string> </value>
...@@ -131,7 +137,7 @@ return getInlinePage(reference, language)\n ...@@ -131,7 +137,7 @@ return getInlinePage(reference, language)\n
<string>Products.ERP5Type.Cache</string> <string>Products.ERP5Type.Cache</string>
<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_path</string>
<string>language</string> <string>language</string>
</tuple> </tuple>
......
2008-06-28 yo
* Use restrictedTraverse instead of getDocumentValue in WebSection_viewInlinePageRenderer, because we need an appropriate acquisition wrapper here.
2008-06-28 yo 2008-06-28 yo
* Add a standard method for string substitutions. * Add a standard method for string substitutions.
......
671 673
\ 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