Commit 212ac196 authored by Jérome Perrin's avatar Jérome Perrin

xhtml_style: make standard_error_message_render compatible with Zope4

In Zope4 error_message is not passed and http exceptions are callable,
but not with required positional arguments.
parent 5b20c274
...@@ -4,13 +4,13 @@ ...@@ -4,13 +4,13 @@
xmlns:i18n="http://xml.zope.org/namespaces/i18n" xmlns:i18n="http://xml.zope.org/namespaces/i18n"
metal:define-macro="standard_error_message_render" metal:define-macro="standard_error_message_render"
> >
<div tal:condition="options/error_message" tal:content="structure options/error_message" /> <div tal:condition="python: options.get('error_message')" tal:content="structure options/error_message" />
<div tal:condition="not: options/error_message"> <div tal:condition="python: not options.get('error_message')">
<h2 i18n:translate="">Site Error</h2> <h2 i18n:translate="">Site Error</h2>
<p i18n:translate="">An error was encountered while publishing this resource.</p> <p i18n:translate="">An error was encountered while publishing this resource.</p>
<p> <p>
<strong i18n:translate="">Error Type: <span tal:replace="options/error_type" i18n:name="error_type" /></strong><br /> <strong i18n:translate="">Error Type: <span tal:replace="python: options['error_type']" i18n:name="error_type" /></strong><br />
<strong i18n:translate="">Error Value: <span tal:replace="options/error_value" i18n:name="error_value" /></strong><br /> <strong i18n:translate="">Error Value: <span tal:replace="python: options['error_value']" i18n:name="error_value" /></strong><br />
</p> </p>
<hr noshade="noshade" /> <hr noshade="noshade" />
<p i18n:translate="">Troubleshooting Suggestions</p> <p i18n:translate="">Troubleshooting Suggestions</p>
......
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