[Zope] Both tal:on-error and error_log?

Jens Vagelpohl jens at dataflake.org
Mon Apr 18 15:25:11 EDT 2005


On Apr 18, 2005, at 20:51, Kirk Strauser wrote:

> On Monday 18 April 2005 13:35, Jens Vagelpohl wrote:
>
>> I don't think that's possible. But you can test that very easily for
>> yourself by putting code inside the on-error that provokes an error.
>
> I guess I should've prefaced my question by saying that I know on-error
> normally ends propagation of the exception.  I guess I was wondering if
> there was some way to manually add the exception to an error_log 
> object so
> that i can come back later to analyze that logfile, while still 
> presenting
> a non-confusing error screen to my users.

There is a method named "raising" on the SiteErrorLog object but I 
don't see a way to call it from a PageTemplate itself because it seems 
to need the actual exception object as its argument.

jens



More information about the Zope mailing list