Thanks<br><br>Work now :D<br><br>Just need remove the single cuotes ( ' )<br><br><div class="gmail_quote">2008/11/3 Jeff Peterson <span dir="ltr"><<a href="mailto:jeff.peterson@crary.com">jeff.peterson@crary.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div link="blue" vlink="purple" lang="EN-US">
<div>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Try this: </span>tal:attributes="id string:'tr_'${repeat/item/number}"<span style="font-size: 11pt; color: rgb(31, 73, 125);"></span></p><div class="Ih2E3d">
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">--</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Jeffrey D Peterson</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Webmaster</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Crary Industries, Inc.</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
</div><div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">
<p><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;"> Miguel Beltran R.
[mailto:<a href="mailto:yourpadre@gmail.com" target="_blank">yourpadre@gmail.com</a>] <br>
<b>Sent:</b> Friday, October 31, 2008 8:01 PM<br>
<b>To:</b> Jeff Peterson<div><div></div><div class="Wj3C7c"><br>
<b>Subject:</b> Re: [Zope] standard_error using zpt</div></div></span></p>
</div><div><div></div><div class="Wj3C7c">
<p> </p>
<p style="margin-bottom: 12pt;">Now is working fine<br>
<br>
After change <br>
/standard_error to /dir/standard_error_message made the I wanted.<br>
<br>
now the problem is<br>
<tr id="tr" <br>
tal:repeat="item context/zsql_producto"<br>
tal:attributes="id python: 'tr_' +
repeat['item'].number"<br>
><br>
<br>
say cannot concatenate 'str' and 'instancemethod' objects</p>
<div>
<p>2008/10/31 Jeff Peterson <<a href="mailto:jeff.peterson@crary.com" target="_blank">jeff.peterson@crary.com</a>></p>
<div>
<div>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Yeah, I guess I wouldn't expect
that to work. Do you have the full traceback? </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> 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.</span></p>
<div>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">--</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Jeffrey D Peterson</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Webmaster</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Crary Industries, Inc.</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
</div>
<div style="border-style: solid none none; border-color: -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">
<p><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;"> Miguel Beltran R. [mailto:<a href="mailto:yourpadre@gmail.com" target="_blank">yourpadre@gmail.com</a>] <br>
<b>Sent:</b> Thursday, October 30, 2008 9:43 PM<br>
<b>To:</b> Jeff Peterson<br>
<b>Cc:</b> Andrew Milton; <a href="mailto:zope@zope.org" target="_blank">zope@zope.org</a></span></p>
<div>
<div>
<p><span style="font-size: 10pt;"><br>
<b>Subject:</b> Re: [Zope] standard_error using zpt</span></p>
</div>
</div>
</div>
<div>
<div>
<p> </p>
<p style="margin-bottom: 12pt;">Not work :(, say<br>
<br>
Error Type: TraversalError<br>
Error Value: ({'args': ()}, 'error_type')<br>
<br>
::::::::::::: /a/b/<a href="http://muestra.pt" target="_blank">muestra.pt</a><br>
<div <br>
tal:condition="exists:request/modo"<br>
tal:on-error="structure context/<a href="http://standard_error.pt" target="_blank">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" target="_blank">muestra_ultimos.pt</a>"<br>
tal:omit-tag=""<br>
> <br>
</p><br>
</div><br>
<br>
::::::::: /a/b/<a href="http://muestra_ultimos.pt" target="_blank">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" target="_blank">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></p>
<div>
<p>2008/10/30 Jeff Peterson <<a href="mailto:jeff.peterson@crary.com" target="_blank">jeff.peterson@crary.com</a>></p>
<p>Just for independent confirmation he's right, "options" is what
you want.<br>
<br>
--<br>
Jeffrey D Peterson<br>
Webmaster<br>
Crary Industries, Inc.</p>
<div>
<div>
<p><br>
-----Original Message-----<br>
From: <a href="mailto:zope-bounces@zope.org" target="_blank">zope-bounces@zope.org</a>
[mailto:<a href="mailto:zope-bounces@zope.org" target="_blank">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" target="_blank">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" target="_blank">akm@theinternet.com.au</a></p>
</div>
</div>
<p>_______________________________________________<br>
Zope maillist - <a href="mailto:Zope@zope.org" target="_blank">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>
)</p>
</div>
<p><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</p>
</div>
</div>
</div>
</div>
</div>
<p><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</p>
</div></div></div>
</div>
</blockquote></div><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<br>