[Zope-Checkins] CVS: Zope/lib/python/Products/SiteErrorLog/www - showEntry.pt:1.3

Shane Hathaway shane@cvs.zope.org
Thu, 4 Apr 2002 11:25:44 -0500


Update of /cvs-repository/Zope/lib/python/Products/SiteErrorLog/www
In directory cvs.zope.org:/tmp/cvs-serv20254/www

Modified Files:
	showEntry.pt 
Log Message:
When displaying a traceback as text, show it alone with a text/plain content type.

=== Zope/lib/python/Products/SiteErrorLog/www/showEntry.pt 1.2 => 1.3 ===
 </table>
 
-<div tal:condition="python: entry['tb_html'] and
-                    not request.get('show_entry_as_text')">
-<div tal:content="structure entry/tb_html">
-Traceback
+<div tal:condition="entry/tb_html" tal:content="structure entry/tb_html">
+Traceback (HTML)
 </div>
+<pre tal:condition="not:entry/tb_html" tal:content="entry/tb_text">
+Traceback (text)
+</pre>
+
 <p tal:condition="entry/tb_text"><a href="" tal:attributes="href
-   string:showEntry?id=${entry/id}&show_entry_as_text=1">Display
+   string:getLogEntryAsText?id=${entry/id}">Display
    traceback as text</a></p>
-</div>
-
-<div tal:condition="python: not entry['tb_html'] or
-                    request.get('show_entry_as_text')">
-<pre tal:content="entry/tb_text">
-Traceback
-</pre>
-<p tal:condition="entry/tb_html"><a href="" tal:attributes="href
-   string:showEntry?id=${entry/id}">Display
-   traceback as HTML</a></p>
-</div>
 
 <div tal:condition="entry/req_html">
 <h3>REQUEST</h3>