[ZCM] [ZC] 418/ 7 Comment "DTML anonymizes exceptions"
Collector: Zope Bugs, Features,
and Patches ...
zope-coders-admin at zope.org
Thu May 13 09:44:42 EDT 2004
Issue #418 Update (Comment) "DTML anonymizes exceptions"
Status Pending, Zope/bug medium
To followup, visit:
http://collector.zope.org/Zope/418
==============================================================
= Comment - Entry #7 by ctheune on May 13, 2004 9:44 am
I tried to reproduce this over here, but I can't remember this exactly, and I also don't care anymore.
IMHO you can close this.
________________________________________
= Comment - Entry #6 by mcdonc on Mar 8, 2004 2:45 am
As far as I can tell, this problem still exists, but without any comments in the code about why this is done and without any code to demonstrate the problem it causes, and without any lobbyists for change, I'm afraid this report will need to be closed soon. I'm too chicken to change it, and it appears everybody else is too. ;-) I don't believe I've actually ever *used* dtml-raise, in any case.
________________________________________
= Comment - Entry #5 by leper on Jul 16, 2003 6:13 am
I don't need justification, I'm just trying to understand the
problem better. Being able to trigger it helps tremendously.
(I saw the original code you mentioned but I couldn't figure out
how to trigger it.) Where is new-found code that does it too?
________________________________________
= Comment - Entry #4 by ctheune on Jul 16, 2003 2:19 am
Sorry, I'm afraid I can't, but I found a set of other
points in the code where the same things happen.
If you need justification I can provide some reasoning for this.
________________________________________
= Comment - Entry #3 by leper on Jul 7, 2003 12:42 am
Can you post some example code to duplicate the situtation this arises in? Thanks.
________________________________________
= Comment - Entry #2 by ctheune on Jul 31, 2002 3:25 am
Just a little reminder. Could somebody please reject or accept this? Thanks.
________________________________________
= Request - Entry #1 by ctheune on Jun 5, 2002 3:37 am
DocumentTemplate/DT_Raise.py at line 55 catches exceptions anonymously and reraises them with a default error message. This is problematic e.g. when you call PageTemplates from dtml which raise errors.
This error got hidden from the user for example:
sys.exc_type = Products.PageTemplates.TALES.TALESError
sys.exc_value = NotFound on None in "standard:'here/actions | nothing'", at line 57, column 7
Why not using sys.exc_type and sys.exc_value when we catch an anonymous exception? They can give the developer far more information about what is weird (and why ...) then an default replacement string.
==============================================================
More information about the Zope-Collector-Monitor
mailing list