Hi, I would like to print the code of a method through another method, problem is that when I do that, all the dtml-var tag are interpreted... so, I would like to stop such an interpretation... Is it possible to get the code of a method for printing it in anotherone, without interpreting the code??? (the aim is to make a method to change the code of my index_html method through a configuration interface... I know it can sound a little strange....;^) ) Thanks Pierre
Is it possible to get the code of a method for printing it in anotherone, without interpreting the code???
Hmm. you could try (untested): <dtml-var "dtmlmethod.document_src(REQUEST,RESPONSE)"> and you may also have to do: <dtml-call "REQUEST.set('Content-Type','text/html')"> like so, after the <dtml-var ..> tag. -Morten
print the .raw attribute of the method..it is just a string containing the raw contents a DTML method or DTML Document. Pierre Rougier wrote:
Hi,
I would like to print the code of a method through another method, problem is that when I do that, all the dtml-var tag are interpreted... so, I would like to stop such an interpretation... Is it possible to get the code of a method for printing it in anotherone, without interpreting the code??? (the aim is to make a method to change the code of my index_html method through a configuration interface... I know it can sound a little strange....;^) )
Thanks Pierre
_______________________________________________ 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 )
Hi ! Terry Kerr wrote:
print the .raw attribute of the method..it is just a string containing the raw contents a DTML method or DTML Document.
Pierre Rougier wrote:
Hi,
I would like to print the code of a method through another method, problem is that when I do that, all the dtml-var tag are interpreted... so, I would like to stop such an interpretation... Is it possible to get the code of a method for printing it in anotherone, without interpreting the code??? (the aim is to make a method to change the code of my index_html method through a configuration interface... I know it can sound a little strange....;^) )
Just what Terry said: <dtml-var "index_html.raw"> I just want to add that you can then view the content nicely like this: <dtml-var standard_html_header> <PRE> <dtml-var "index_html.raw" html_quote> <PRE> <dtml-var standard_html_footer> Greetings, Maik Röder
participants (4)
-
Maik Roeder -
Morten W. Petersen -
Pierre Rougier -
Terry Kerr