"Morten W. Petersen" wrote:
The idea which crossed my mind was to subclass DTML Document and replace the render method which one that returned something like html_quote(self.raw()).
That would bring up HTML in a rendered page. I don't think that's what you want. That would be ok for editing tho.
Sorry, don't follow you... the rendered page should be the same as the raw contents of the HTML document, surely?
I wonder if I'd need to set any content types?
I don't think you have to do that if you use <DOCTYPE or <HTML around the start of the document, it should "take care of itself".
Might still be nixe to set the content-type to text/html I think Zope might get upset if you don't. Chris PS: Just had another thought (what two in a day?!): How about removing the DTML Document object type and replacing it with a simple 'Document' class where you can choose the encoding a la ZWiki 0.6. The default would be DTML with options for Plain Text, Structured Text and HTML. The ability to change the encoding should be controlled by a permission so it's nice and secure. comments?