RE: [Zope-dev] Plain text version of HTTPRequest
-----Original Message----- From: Andrew M. Kuchling [mailto:akuchlin@mems-exchange.org] Sent: Monday, December 13, 1999 4:51 PM To: zope-dev@zope.org Subject: [Zope-dev] Plain text version of HTTPRequest
The __str__() method of HTTPRequest objects produce formatted HTML. For the purposes of e-mailing tracebacks, I'd like a plain ASCII version of the same information. If I added a method (say, .dump()) that generated a plain text version, would it be accepted into the CVS tree?
I'm not sure where the formatted version of REQUEST objects came from, but Jim got this wild look in his eye when he found out about it, since you can just go to /REQUEST anywhere in a URL space in Zope and inspect the REQUEST object. I think your need is valid, perhaps though we should think about a different way? Is there is a need for __str__() on REQUEST? Should it be publicly visible? If not, then perhaps the HTML markup should be removed and it made to satisfy your needs. -Michel
Michel Pelletier writes:
I'm not sure where the formatted version of REQUEST objects came from, but Jim got this wild look in his eye when he found out about it, since you can just go to /REQUEST anywhere in a URL space in Zope and inspect the REQUEST object.
I thought he *always* had that look in his eye. :) Anyway, this isn't for interactive debugging, but for generating an e-mail when an uncaught exception happens on our live site, so I don't see that the ability to view /REQUEST helps; we just don't want to require that everyone be running an MUA which displays HTML. -- A.M. Kuchling http://starship.python.net/crew/amk/ Mind you, I'm not wild about computers myself, but they are a tool. If you have a tool, it's stupid not to use it. -- The Doctor, in "Inferno"
participants (2)
-
Andrew M. Kuchling -
Michel Pelletier