On Thursday 14 March 2002 14:05, Chuck Esterbrook wrote:
> On Thursday 14 March 2002 11:44 am, Tavis Rudd wrote:
> > On Thursday 14 March 2002 10:22, Geoffrey Talvola wrote:
> > > Tavis Rudd wrote:
> > > > Geoff,
> > > > here's a patch to make ExceptionHandler.py email the HTML
> > > error > reports as attachments rather than as part of the
> > > message body. > It makes it easier to save or forward them.
> > > > Tavis
> > >
> > > I don't have any trouble saving or forwarding exception emails
> > > right now. And isn't it harder to view the error report if it's
> > > an attachment?
> >
> > For various reasons I set my email clients to display plain text
> > rather than HTML in the message body. It would be nice to have a
> > plain text traceback that precedes the HTML version in the email.
>
> Sounds like a multi-part MIME message with a text part and an html
> part would solve this. The default behavior would send both and a
> config would allow you to axe one of them out.
How does this look?
---------- Forwarded Message ----------
Subject: A Webware Error Occurred
Date: Thu, 14 Mar 2002 12:59:13 -0800
From: root@...
To: tavis@...
WebKit caught an exception while processing a request for
"/WK/ImageManager" at Thu Mar 14 12:59:12 2002 (timestamp:
1016139552.85). The plain text trackeback from Python is
printed below and the full HTMLerror report from WebKit
is attached.
Traceback (most recent call last):
File
"/usr/local/lib/python2.2/site-packages/Webware/WebKit/Application.p
y", line 448, in _dispatchRequest servlet.respond(trans)
File
"/usr/local/lib/python2.2/site-packages/Webware/Cheetah/Templates/Sk
eletonPage.py", line 225, in respond self.writeBody(trans=trans) #
generated from ('writeBody', '#block writeBody') at line, col (48,
1). File
"/var/www/www.calrudd.com/Webware/Servlets/SiteTemplate.py", line
408, in writeBody self.writeMainContents(trans=trans) # generated
from ('writeMainContents', '#block writeMainContents') at line, col
(33, 1). File
"/var/www/www.calrudd.com/Webware/Servlets/ImageManager.py", line
489, in writeMainContents write(filter(VFS(SL,"writeImageTable",1)))
# generated from '$writeImageTable' at line, col (9, 1). File
"/var/www/www.calrudd.com/Webware/Servlets/ImageManager.py", line
228, in writeImageTable for id, img in
VFN(VFS(SL,"getImagesForSelections",0)(VFS(SL,"session.pw_selections
",1)),"items",0)(): File
"/var/www/www.calrudd.com/Webware/Servlets/_ImageManager.py", line
40, in getImagesForSelections cursor.execute("""
ProgrammingError: ERROR: Relation 'pw__image' does not exist
SELECT *
FROM pw__image im, pw__images_selections im_sel
WHERE im.id=im_sel.im_id AND im_sel.sel_id = 'bindley'
-------------------------------------------------------
|