Commit cc10bdc6 authored by Yusei Tahara's avatar Yusei Tahara

2008-07-01

* Fix WebSection_viewInlinePageRenderer. Prevent to get a non document object. Thank you for Thomas Nouret.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22161 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8ea03b67
...@@ -73,6 +73,7 @@ ...@@ -73,6 +73,7 @@
"""\n """\n
\n \n
def getInlinePage(reference, language):\n def getInlinePage(reference, language):\n
if reference:\n
page = context.restrictedTraverse(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
......
2008-07-01
* Fix WebSection_viewInlinePageRenderer. Prevent to get a non document object. Thank you for Thomas Nouret.
2008-06-28 yo 2008-06-28 yo
* Use restrictedTraverse instead of getDocumentValue in WebSection_viewInlinePageRenderer, because we need an appropriate acquisition wrapper here. * Use restrictedTraverse instead of getDocumentValue in WebSection_viewInlinePageRenderer, because we need an appropriate acquisition wrapper here.
......
674 675
\ 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