Re: [Zope] Cool monkey patch to make tracebacks more useful :-)

2005-07-19 Thread Chris Withers
Dieter Maurer wrote: Do you get a traceback by pdb? I meant when I type w in a pdb session. I only get information of the form *** TypeError: exceptions.TypeError instance at 0x405e0cac This is even more stupid than Microsoft error messages. Today, I have been so annoyed by this

Re: [Zope] Cool monkey patch to make tracebacks more useful :-)

2005-07-16 Thread Chris Withers
Dieter Maurer wrote: I had a similar experience but solved it by modifying zLOG.EventLogger.log in the following way: # DM 2005-06-27: Zope style tracebacks from zExceptions.ExceptionFormatter import format_exception # DM 2005-06-27: we now use Zope's traceback format because

Re: [Zope] Cool monkey patch to make tracebacks more useful :-)

2005-07-16 Thread Chris Withers
Lennart Regebro wrote: This bugged me, so I had a dig, and just discovered this cool monkey patch, to be inserted in any module that gets imported before an exception is raised: So, could this be in the unit test module itself, for example? Well, like I said, I'm gonna roll up a load of

Re: [Zope] Cool monkey patch to make tracebacks more useful :-)

2005-07-16 Thread Dieter Maurer
Chris Withers wrote at 2005-7-15 20:33 +0100: ... That just leaves the traceback printed by pdb, anyone reckon they can get that to use the sensible formatter? ;-) Do you get a traceback by pdb? I only get information of the form *** TypeError: exceptions.TypeError instance at 0x405e0cac

Re: [Zope] Cool monkey patch to make tracebacks more useful :-)

2005-07-14 Thread Dieter Maurer
Chris Withers wrote at 2005-7-13 09:40 +0100: Ever noticed how tracebacks from ZPT are actually quite useful when viewed through the error_log object, but totally useless when they fail, say, in a unit test? This bugged me, so I had a dig, and just discovered this cool monkey patch, to be

Re: [Zope] Cool monkey patch to make tracebacks more useful :-)

2005-07-14 Thread Dieter Maurer
Lennart Regebro wrote at 2005-7-13 12:47 +0200: ... Ever noticed how it's near impossible to figure out what actually causes an error when you run functional tests? Can you fix that too? :-) I solve this with a browser emulation that does not use HTTP for requests but instead emulates

[Zope] Cool monkey patch to make tracebacks more useful :-)

2005-07-13 Thread Chris Withers
Hi All, Ever noticed how tracebacks from ZPT are actually quite useful when viewed through the error_log object, but totally useless when they fail, say, in a unit test? This bugged me, so I had a dig, and just discovered this cool monkey patch, to be inserted in any module that gets

Re: [Zope] Cool monkey patch to make tracebacks more useful :-)

2005-07-13 Thread Lennart Regebro
On 7/13/05, Chris Withers [EMAIL PROTECTED] wrote: Ever noticed how tracebacks from ZPT are actually quite useful when viewed through the error_log object, but totally useless when they fail, say, in a unit test? Yeah. This bugged me, so I had a dig, and just discovered this cool monkey