[Erp5-report] r6638 - /erp5/trunk/products/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/...
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Apr 14 13:15:38 CEST 2006
Author: vincent
Date: Fri Apr 14 13:15:36 2006
New Revision: 6638
URL: http://svn.erp5.org?rev=6638&view=rev
Log:
Don't fail rendering the page when "form" isn't defined.
Modified:
erp5/trunk/products/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/view_master.xml
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/view_master.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/view_master.xml?rev=6638&r1=6637&r2=6638&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/view_master.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/view_master.xml Fri Apr 14 13:15:36 2006
@@ -107,12 +107,14 @@
<link href="erp5.css" rel="stylesheet" type="text/css"\n
tal:attributes="href python: here.portal_url() + \'/\' + \'erp5.css\'" />\n
\n
-\n
- <tal:block tal:condition="python:form.has_field(\'planning_box\')">\n
- <tal:block tal:define="planning_box1 python:form.get_field(\'planning_box\');dummy python:request.set(\'here\',here)" >\n
- <style tal:content="structure python: planning_box1.render_css(None,REQUEST=request)"/>\n
- </tal:block>\n
+ <tal:block tal:condition="exists: form">\n
+ <tal:block tal:condition="python:form.has_field(\'planning_box\')">\n
+ <tal:block tal:define="planning_box1 python:form.get_field(\'planning_box\');dummy python:request.set(\'here\',here)" >\n
+ <style tal:content="structure python: planning_box1.render_css(None,REQUEST=request)"/>\n
+ </tal:block>\n
+ </tal:block>\n
</tal:block>\n
+\n
</head>\n
<body LEFTMARGIN=0 TOPMARGIN=0 MARGINHEIGHT="0" MARGINWIDTH="0">\n
<form action="Test" name="main_form" id="main_form"\n
More information about the Erp5-report
mailing list