[Zope] regarding tal:on-error

Andreas Jung lists at zopyx.com
Mon Jun 30 10:52:55 EDT 2008



--On 30. Juni 2008 13:23:53 +0100 suhail shaik <suhailsqm at gmail.com> wrote:

> hi,
>        I am thinking of using tal:on-error to catch an exception and
> traverse to a default pagetemplate.
> could some one please help me regarding the code ....
>
> please clarify if the following statement is valid.
>
> <div> tal:on-error=""
>            <p><a href="error" tal:attributes="href python:
> container.error.absolute_url()"></a></p></div>

tal:on-error in general is evil. Don't use it.
Afaik it eats even ZODB conflict-errors which might cause some
trouble.

-aj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 194 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope/attachments/20080630/1c1522a5/attachment.bin


More information about the Zope mailing list