2 possible ways: (a) use redirect or (b) return the DTML doc as object (a) context.REQUEST.RESPONSE.redirect(uri_of_your_dtml_document) return (b) return context.restrictedTraverse(uri_of_your_dtml_document) ----- Original Message ----- From: "Laurent Duchesne" <laurent@levinux.org> To: <zope@zope.org> Sent: Tuesday, September 18, 2001 3:51 PM Subject: [Zope] Calling DTML Document from python script
I got an object 'file' witch contains a DTML Document object. When I try to call it from a pythton script like this : print file() I get the error : Error Type: KeyError Error Value: standard_html_header
So what I need to do is to print out the DTML document without it's header and footer (<dtml-var standard_html_header> and <dtml-var standard_html_footer>) and still that it's content get executed (all other dtml-var gets resolved)
Anyone knows how to do that and maybe what parameter I have to pass to the print file(...) function?
_______________________________________________ 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 )