Re: Stop zope from adding <html><head></head> to my method
#1, it is absolutely NOT the browser that adds HTML and HEAD tags to the output from DTML methods. It is some default behavior in the ZPublisher. Verifying stuff like this takes about 20 seconds using Lynx and/or Telnet, even if you don't grok Zope internals. I strongly urge David and others not to post untested guesses as answers to specific technical questions here - it has the potential to confuse hundreds of readers. #2, there is a much simpler way to override Content-Type and other HTTP headers in any DTML Method: simply put them as the first lines in your method body, separated from the rest of the body content by a blank line. Try it: create a DTML Method called 'tom_is_great' and edit this in: +----------------------- |Content-Type: text/xml |X-Tom-Status: right as rain | |<document title="Tom is right"> |<status>Amazing...</status> |</document> | +----------------------- [Change] Now go look at it in IEXPLORE or dump it with Lynx, and voila. Modesty in three colors. :)
Tom Neff wrote:
... I strongly urge David and others not to post untested guesses as answers to specific technical questions here - it has the potential to confuse hundreds of readers. ...
I second this call!! Guy N. Hurst
I, as an occasional past offender, also agree and pledge to test early and test often before posting further replies. JIm ----- Original Message ----- From: Guy N. Hurst <gnhurst@hurstlinks.com> To: Tom Neff <tneff@bigfoot.com> Cc: <zope@zope.org> Sent: Friday, February 25, 2000 5:23 PM Subject: [Zope] comment on posting behavior Tom Neff wrote:
... I strongly urge David and others not to post untested guesses as answers to specific technical questions here - it has the potential to confuse hundreds of readers. ...
I second this call!! Guy N. Hurst _______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
participants (3)
-
Guy N. Hurst -
Jim Sanford -
Tom Neff