[Zope-CMF] Re: Moving to browser views

Charlie Clark charlie at begeistert.org
Wed Jul 18 19:02:10 EDT 2007


Am 18.07.2007 um 23:32 schrieb Charlie Clark:

> Well, I've now got two classes (EventvCalView has to set different  
> headers so I can't see an easy way round this in ZCML) and two  
> different templates. Everything is working fine apart from the  
> content-type is remaining steadfastly text/html! Content- 
> Disposition is being set correctly. How do I fix this? ;-)

mm, calling the template gets the response header reset...
1) call the template
2) set the headers
3) write the response

Charlie
--
Charlie Clark
Helmholtzstr. 20
Düsseldorf
D- 40215
Tel: +49-211-938-5360
GSM: +49-178-782-6226





More information about the Zope-CMF mailing list