Commit 8edb5969 authored by Jérome Perrin's avatar Jérome Perrin Committed by Arnaud Fontaine

xhtml_style: make standard_error_message_render compatible with Zope4 👷

In Zope4 error_message is sometimes not passed.

( also http exceptions are callable but that was fixed in
3cffb52c  xhtml: the exception in error_value is callable and evaluated, prevent it when rendering page [aurel]
maybe we can squash these two commits later )
parent 7d375876
......@@ -4,8 +4,8 @@
xmlns:i18n="http://xml.zope.org/namespaces/i18n"
metal:define-macro="standard_error_message_render"
>
<div tal:condition="options/error_message" tal:content="structure options/error_message" />
<div tal:condition="not: options/error_message">
<div tal:condition="python: options.get('error_message')" tal:content="structure options/error_message" />
<div tal:condition="python: not options.get('error_message')">
<h2 i18n:translate="">Site Error</h2>
<p i18n:translate="">An error was encountered while publishing this resource.</p>
<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