<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Yeah, I guess I wouldn&#8217;t expect that to work.&nbsp; Do you
have the full traceback? <o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>&nbsp;The standard_error_message template can be tricky.&nbsp; It
doesn&#8217;t get called to handle every error, nor should you call it directly,
I think.&nbsp; AFAIK the &#8220;options&#8221; data is only available when an
error, one that it handles by default, occurs.&nbsp; Also, and I may be wrong I
haven&#8217;t played with it too much but isn&#8217;t the name
standard_error_message required?&nbsp; I think what you want to look at is the
Zope help for &#8220;tal:on-error&#8221;&nbsp; There is an example there that
may help.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>--<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Jeffrey D Peterson<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Webmaster<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Crary Industries, Inc.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Miguel Beltran R.
[mailto:yourpadre@gmail.com] <br>
<b>Sent:</b> Thursday, October 30, 2008 9:43 PM<br>
<b>To:</b> Jeff Peterson<br>
<b>Cc:</b> Andrew Milton; zope@zope.org<br>
<b>Subject:</b> Re: [Zope] standard_error using zpt<o:p></o:p></span></p>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal style='margin-bottom:12.0pt'>Not work :(, say<br>
<br>
Error Type: TraversalError<br>
Error Value: ({'args': ()}, 'error_type')<br>
<br>
::::::::::::: /a/b/<a href="http://muestra.pt">muestra.pt</a><br>
&lt;div <br>
&nbsp;&nbsp; tal:condition=&quot;exists:request/modo&quot;<br>
&nbsp;&nbsp; tal:on-error=&quot;structure context/<a
href="http://standard_error.pt">standard_error.pt</a>&quot;<br>
&gt;<br>
&nbsp;&nbsp; &lt;p <br>
&nbsp;&nbsp; &nbsp;&nbsp; tal:condition=&quot;python:request.modo=='nada'&quot;<br>
&nbsp;&nbsp; &nbsp;&nbsp; tal:omit-tag=&quot;&quot;<br>
&nbsp;&nbsp; &gt;<br>
&nbsp;&nbsp; &nbsp;&nbsp; No se a ejecutado ninguna accion<br>
&nbsp;&nbsp; &lt;/p&gt;<br>
&nbsp;&nbsp; &lt;p <br>
&nbsp;&nbsp; &nbsp;&nbsp;
tal:condition=&quot;python:request.modo=='ultimos'&quot;<br>
&nbsp;&nbsp; &nbsp;&nbsp; tal:content=&quot;structure container/<a
href="http://muestra_ultimos.pt">muestra_ultimos.pt</a>&quot;<br>
&nbsp;&nbsp; &nbsp;&nbsp; tal:omit-tag=&quot;&quot;<br>
&nbsp;&nbsp; &gt;&nbsp;&nbsp; <br>
&nbsp;&nbsp; &lt;/p&gt;<br>
&lt;/div&gt;<br>
<br>
::::::::: /a/b/<a href="http://muestra_ultimos.pt">muestra_ultimos.pt</a><br>
&lt;table border=&quot;1&quot;&gt;<br>
&nbsp; &lt;thead&gt;<br>
&nbsp; &lt;tr&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp; &lt;th&gt;Tipo&lt;/th&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp; &lt;th&gt;Producto&lt;/th&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp; &lt;th&gt;Nombre&lt;/th&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp; &lt;th&gt;Presentacion&lt;/th&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp; &lt;th&gt;Unidad&lt;/th&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp; &lt;th&gt;Existencia&lt;/th&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp; &lt;th&gt;Total&lt;/th&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp; &lt;th&gt;Observaciones&lt;/th&gt;<br>
&nbsp; &lt;tr&gt;<br>
&nbsp; &lt;/thead&gt;<br>
&nbsp; &lt;tbody&gt;<br>
&nbsp; &lt;tr id=&quot;tr&quot;&nbsp;&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp;&nbsp; tal:repeat=&quot;item context/zsql_producto&quot;<br>
&nbsp;&nbsp;&nbsp;&nbsp; tal:attributes=&quot;id python: 'tr_' +
repeat.number&quot; &lt;--here is the error what I want catch (how resolve?)<br>
&nbsp; &gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp; &lt;td
tal:content=&quot;item/tipo_producto&quot;&gt;Tipo&lt;/td&gt;<br>
&nbsp; &lt;/tr&gt;<br>
&nbsp; &lt;/tbody&gt;<br>
&lt;/table&gt;<br>
<br>
<br>
::::::::::::: /<a href="http://standard_error.pt">standard_error.pt</a><br>
&lt;table&gt;<br>
&nbsp;&nbsp; &lt;tr&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;th&gt;Tipo&lt;/th&gt; &lt;td
tal:content=&quot;options/error_type &quot;&gt;TipoError&lt;/td&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;th&gt;Valor&lt;/th&gt; &lt;td
tal:content=&quot;options/error_value &quot;&gt;ValorError&lt;/td&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;th&gt;&lt;/th&gt; &lt;td
tal:content=&quot;options/error_tb &quot;&gt;tb&lt;/td&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;th&gt;&lt;/th&gt; &lt;td
tal:content=&quot;options/error_traceback &quot;&gt;Raestro en
reversa&lt;/td&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;th&gt;&lt;/th&gt; &lt;td
tal:content=&quot;options/error_message&quot;&gt;mensaje de error&lt;/td&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;th&gt;&lt;/th&gt; &lt;td tal:content=&quot;options/error_log_url&quot;&gt;url
de error&lt;/td&gt;<br>
&nbsp;&nbsp; &lt;/tr&gt;<br>
&lt;/table&gt;<o:p></o:p></p>

<div>

<p class=MsoNormal>2008/10/30 Jeff Peterson &lt;<a
href="mailto:jeff.peterson@crary.com">jeff.peterson@crary.com</a>&gt;<o:p></o:p></p>

<p class=MsoNormal>Just for independent confirmation he's right,
&quot;options&quot; is what you want.<br>
<br>
--<br>
Jeffrey D Peterson<br>
Webmaster<br>
Crary Industries, Inc.<o:p></o:p></p>

<div>

<div>

<p class=MsoNormal><br>
-----Original Message-----<br>
From: <a href="mailto:zope-bounces@zope.org">zope-bounces@zope.org</a> [mailto:<a
href="mailto:zope-bounces@zope.org">zope-bounces@zope.org</a>] On Behalf Of
Andrew Milton<br>
Sent: Wednesday, October 29, 2008 11:02 PM<br>
To: Miguel Beltran R.<br>
Cc: <a href="mailto:zope@zope.org">zope@zope.org</a><br>
Subject: Re: [Zope] standard_error using zpt<br>
<br>
+-------[ Miguel Beltran R. ]----------------------<br>
| Hi List<br>
|<br>
| I remember what old versions from zope haved standard_error using DTML<br>
| How can do it the same using ZPT?<br>
|<br>
| I already try:<br>
| &lt;td tal:content=&quot;error/type&quot;&gt;<br>
| &lt;td tal:content=&quot;python: error.type&quot;&gt;<br>
| &lt;td tal:content=&quot;context/error/type&quot;&gt;<br>
<br>
&gt;From memory the following should be available;<br>
<br>
options/error_type<br>
options/error_value<br>
options/error_tb<br>
options/error_traceback<br>
options/error_message<br>
options/error_log_url<br>
<br>
<br>
--<br>
Andrew Milton<br>
<a href="mailto:akm@theinternet.com.au">akm@theinternet.com.au</a><o:p></o:p></p>

</div>

</div>

<p class=MsoNormal>_______________________________________________<br>
Zope maillist &nbsp;- &nbsp;<a href="mailto:Zope@zope.org">Zope@zope.org</a><br>
<a href="http://mail.zope.org/mailman/listinfo/zope" target="_blank">http://mail.zope.org/mailman/listinfo/zope</a><br>
** &nbsp; No cross posts or HTML encoding! &nbsp;**<br>
(Related lists -<br>
&nbsp;<a href="http://mail.zope.org/mailman/listinfo/zope-announce"
target="_blank">http://mail.zope.org/mailman/listinfo/zope-announce</a><br>
&nbsp;<a href="http://mail.zope.org/mailman/listinfo/zope-dev" target="_blank">http://mail.zope.org/mailman/listinfo/zope-dev</a>
)<o:p></o:p></p>

</div>

<p class=MsoNormal><br>
<br clear=all>
<br>
-- <br>
________________________________________<br>
Lo bueno de vivir un dia mas<br>
es saber que nos queda un dia menos de vida<o:p></o:p></p>

</div>

</body>

</html>