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 @@
"""\n
\n
def getInlinePage(reference, language):\n
page = context.getDocumentValue(reference)\n
page = context.restrictedTraverse(reference)\n
if page is not None:\n
return page.asStrippedHTML()\n
return None\n
......@@ -98,6 +98,12 @@ return getInlinePage(reference, language)\n
<none/>
</value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>reference</string> </value>
......@@ -131,7 +137,7 @@ return getInlinePage(reference, language)\n
<string>Products.ERP5Type.Cache</string>
<string>CachingMethod</string>
<string>_getattr_</string>
<string>context</string>
<string>context</string>
<string>web_site_path</string>
<string>language</string>
</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
* Add a standard method for string substitutions.
......
671
\ No newline at end of file
673
\ 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