[Zope] A cute traceback

Kevin Dangoor kid@kendermedia.com
Sun, 26 Sep 1999 13:08:42 -0400


Hi,

I've usually seen this one when Zope can't quite determine the content type.
Assuming interview_edit is supposed to spit out HTML, you can probably fix
this by adding this line to the beginning:

<dtml-call "RESPONSE.setHeader('content-type', 'text/html')">

Kevin

-----Original Message-----
From: Morten W. Petersen <mpeters@online.no>
To: zope@zope.org <zope@zope.org>
Date: Sunday, September 26, 1999 11:51 AM
Subject: [Zope] A cute traceback


>Here's a strange one.
>
><!--
>Traceback (innermost last):
>  File /home/morphex/Zope/lib/python/ZPublisher/Publish.py, line 878, in
>publish_module
>  File /home/morphex/Zope/lib/python/ZPublisher/Publish.py, line 590, in
>publish
>    (Info: /Linoo/system/interviews/interview_edit)
>  File /home/morphex/Zope/lib/python/OFS/DTMLDocument.py, line 215, in
>__call__
>    (Object: interview_edit)
>  File /home/morphex/Zope/lib/python/OFS/DTMLMethod.py, line 340, in
>decapitate
>ValueError: Invalid Header (0):
>
>-->