<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’t expect that to work. 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> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'> The standard_error_message template can be tricky. It
doesn’t get called to handle every error, nor should you call it directly,
I think. AFAIK the “options” data is only available when an
error, one that it handles by default, occurs. Also, and I may be wrong I
haven’t played with it too much but isn’t the name
standard_error_message required? I think what you want to look at is the
Zope help for “tal:on-error” 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> </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> </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>
<div <br>
tal:condition="exists:request/modo"<br>
tal:on-error="structure context/<a
href="http://standard_error.pt">standard_error.pt</a>"<br>
><br>
<p <br>
tal:condition="python:request.modo=='nada'"<br>
tal:omit-tag=""<br>
><br>
No se a ejecutado ninguna accion<br>
</p><br>
<p <br>
tal:condition="python:request.modo=='ultimos'"<br>
tal:content="structure container/<a
href="http://muestra_ultimos.pt">muestra_ultimos.pt</a>"<br>
tal:omit-tag=""<br>
> <br>
</p><br>
</div><br>
<br>
::::::::: /a/b/<a href="http://muestra_ultimos.pt">muestra_ultimos.pt</a><br>
<table border="1"><br>
<thead><br>
<tr><br>
<th>Tipo</th><br>
<th>Producto</th><br>
<th>Nombre</th><br>
<th>Presentacion</th><br>
<th>Unidad</th><br>
<th>Existencia</th><br>
<th>Total</th><br>
<th>Observaciones</th><br>
<tr><br>
</thead><br>
<tbody><br>
<tr id="tr" <br>
tal:repeat="item context/zsql_producto"<br>
tal:attributes="id python: 'tr_' +
repeat.number" <--here is the error what I want catch (how resolve?)<br>
><br>
<td
tal:content="item/tipo_producto">Tipo</td><br>
</tr><br>
</tbody><br>
</table><br>
<br>
<br>
::::::::::::: /<a href="http://standard_error.pt">standard_error.pt</a><br>
<table><br>
<tr><br>
<th>Tipo</th> <td
tal:content="options/error_type ">TipoError</td><br>
<th>Valor</th> <td
tal:content="options/error_value ">ValorError</td><br>
<th></th> <td
tal:content="options/error_tb ">tb</td><br>
<th></th> <td
tal:content="options/error_traceback ">Raestro en
reversa</td><br>
<th></th> <td
tal:content="options/error_message">mensaje de error</td><br>
<th></th> <td tal:content="options/error_log_url">url
de error</td><br>
</tr><br>
</table><o:p></o:p></p>
<div>
<p class=MsoNormal>2008/10/30 Jeff Peterson <<a
href="mailto:jeff.peterson@crary.com">jeff.peterson@crary.com</a>><o:p></o:p></p>
<p class=MsoNormal>Just for independent confirmation he's right,
"options" 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>
| <td tal:content="error/type"><br>
| <td tal:content="python: error.type"><br>
| <td tal:content="context/error/type"><br>
<br>
>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 - <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>
** No cross posts or HTML encoding! **<br>
(Related lists -<br>
<a href="http://mail.zope.org/mailman/listinfo/zope-announce"
target="_blank">http://mail.zope.org/mailman/listinfo/zope-announce</a><br>
<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>