[Zope] Re: DeadlockDebugger changes

Florent Guillaume fg at nuxeo.com
Tue Mar 22 09:32:48 EST 2005


Hi,

Allen Schmidt wrote:
> I can ask this on the list if you prefer, but thought I would bounce it 
> off you first since it sounds simple and I don't wanna get 'beat up'! :)

I'd prefer that you send to the list, and Cc me.

> Could you suggest an easy way to get the page to be real html? I use a 
> Treo600 cell phone with web browser and its great for checking site 
> status. Would like to see the dumper display wrapped in html because the 
> Treo browser sees it as plain text and wants to download it instead of 
> display it.
> 
> I tried just adding <html> to the starting output and closing text but 
> then Zope would not restart complaining that the Product would not load. 
> Even taking out the text would not put it back right so I reinstalled it 
> clean and it then loaded fine. Have not touched it since. Thought I 
> would ask.

In dumper.py try to change:
   request.channel.push('HTTP/1.0 200 OK\nContent-Type: text/plain\n\n')
   request.channel.push(dump)
into:
   request.channel.push('HTTP/1.0 200 OK\nContent-Type: text/html\n\n')
   request.channel.push('<html><body><pre>\n')
   request.channel.push(dump)
   request.channel.push('\n</pre></body></html>\n')

Florent

> I have some thoughts for making it even better if interested. I am not 
> able to add them but I love using your product. Very interesting to 
> watch the activity. Still trying to figure out how to get the most use 
> out of it.

-- 
Florent Guillaume, Nuxeo (Paris, France)   CTO, Director of R&D
+33 1 40 33 71 59   http://nuxeo.com   fg at nuxeo.com


More information about the Zope mailing list