[Zope-dev] What does a "no Content-Type" traceback indicate is
wrong?
Pavlos Christoforou
pavlos@gaaros.msrc.sunysb.edu
Mon, 12 Apr 1999 13:40:19 -0400 (EDT)
Hi Skip -
On Mon, 12 Apr 1999 skip@mojam.com wrote:
>
> I'm looking for a little advice. I stuck a little sendmail block at the
> start of Response._traceback:
>
> def _traceback(self,t,v,tb):
> if t != "NotFound":
> import traceback, os
> msg = os.popen('/usr/sbin/sendmail -t', 'w')
> msg.write('To: skip@musi-cal.com\n')
> msg.write('Subject: Z traceback\n\n')
> traceback.print_tb(tb, None, msg)
> msg.write("%s: %s\n" % (t, v))
> msg.close()
>
> tb=self.format_exception(t,v,tb,200)
> tb=join(tb,'\n')
> tb=self.quoteHTML(tb)
> return "\n%s\n%s\n%s" % (_tbopen, tb, _tbclose)
What a useful hack! Thanks.
> valid circumstances under which this might occur? Does this just represent
> a broken browser or communication-challenged connection? Can I fake a
> content type and continue or is it a lost cause at this point because
> something more tragic will likely happen further down the line?
>
Maybe return a page reporting the problem to the client?
Pavlos