[Zope] content-type weirdness
Dieter Maurer
dieter@handshake.de
Sun, 3 Nov 2002 19:02:07 +0100
keo writes:
> ...
> is it possible to hardcode content-type to be text/html for all ZPT and
> DTML by default?
Sure, when you change the source...
But, I think, it would not be a good idea:
These objects are often called locally (rather than via
ZPublisher). What a surprise, when you set your
"Content-Type" explicitly to something else and
a local call magically changes it to "text/html".
A probably better way it to set it in your "standard_html_header"
or "main_template".
Dieter