Re: [Zope] create DTML-Source-link like on zope.org
Deryk Barker wrote: <snip how-to for view source>
Well I did and get a NameError looking for document_src.
What object are you trying to view the source of? It's only work (and only makes sense) on things like DTML methods and DTML documents. cheers, Chris
Also, document_src() is a "Python method" function included in the "Python Method" product < URL: http://www.zope.org/Members/4am/PythonMethod > If you're pre-2.0 you have to install that one yourself. 2.0 contains "Python Methods", and document_src() comes for free (I think, but I'm not 100% sure). / Svante Kleist, NEMESIS systemDesign, Stockholm --On Sunday, July 30, 2000 10:37 +0100 Chris Withers <chrisw@nipltd.com> wrote:
Deryk Barker wrote: <snip how-to for view source>
Well I did and get a NameError looking for document_src.
What object are you trying to view the source of? It's only work (and only makes sense) on things like DTML methods and DTML documents.
cheers,
Chris
_______________________________________________ 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 )
Svante Kleist wrote:
Also, document_src() is a "Python method" function included in the "Python Method" product
Sorry but that simpyl isn't true :S The method below works on a slightly patched Zope 2.1.6 with no Python Methods product installed... cheers, Chris <!--#var standard_html_header--> <pre> <!--#var "document_src(REQUEST,RESPONSE)" html_quote--> </pre> <!--#call "RESPONSE.setHeader('content-type','text/html')"--> <!--#var standard_html_footer-->
participants (2)
-
Chris Withers -
Svante Kleist