[Zope3-checkins] CVS: Zope3/src/zope/app/browser/exception - user.pt:1.3
Guido van Rossum
guido@python.org
Thu, 8 May 2003 15:26:39 -0400
Update of /cvs-repository/Zope3/src/zope/app/browser/exception
In directory cvs.zope.org:/tmp/cvs-serv24949
Modified Files:
user.pt
Log Message:
An exception is a sequence. Format each item of the sequence as a
bullet. This lets me raise a multi-part error message like this:
raise UserError("line1", "line2", "line3")
XXX The convention for calling UserError ought to be documented. A
different solution might be to replace \n in each part with a <br>
tag.
=== Zope3/src/zope/app/browser/exception/user.pt 1.2 => 1.3 ===
--- Zope3/src/zope/app/browser/exception/user.pt:1.2 Mon Mar 24 05:47:59 2003
+++ Zope3/src/zope/app/browser/exception/user.pt Thu May 8 15:26:38 2003
@@ -3,10 +3,9 @@
<div metal:fill-slot="body">
-<p>
-<span tal:repeat="part context"><span tal:replace="part">Error message</span>
-</span>
-</p>
+<ul>
+<li tal:repeat="part context" tal:content="part">Error message</li>
+</ul>
</div>
</body>