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

2005-04-18 Thread Jens Vagelpohl
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
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )


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

2005-04-18 Thread Kirk Strauser
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.
-- 
Kirk Strauser
The Day Companies
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


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

2005-04-18 Thread Jens Vagelpohl
On Apr 18, 2005, at 20:20, Kirk Strauser wrote:
Can I use a tal:on-error attribute in a page template to provide a
user-friendly explanation of an exception while still recording the
occurrence of that exception to error_log?
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.

jens
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )


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

2005-04-18 Thread Kirk Strauser
Can I use a tal:on-error attribute in a page template to provide a 
user-friendly explanation of an exception while still recording the 
occurrence of that exception to error_log?
-- 
Kirk Strauser
The Day Companies
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )