Commit 999e703b authored by Fabien Morin's avatar Fabien Morin

call getLayoutProperty on web_site, not on context.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@39783 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9fc597b9
......@@ -55,7 +55,7 @@
\'\'\'\n
\n
web_site = context.getWebSiteValue()\n
blog_section_id = context.getLayoutProperty(\'layout_blog_section_id\', default=\'blog\')\n
blog_section_id = web_site.getLayoutProperty(\'layout_blog_section_id\', default=\'blog\')\n
blog = getattr(web_site, blog_section_id, None)\n
if blog is None:\n
raise ValueError, \'Impossible to find %r blog section id. Please check \'\\\n
......
71
\ No newline at end of file
72
\ 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