structured text to variable
hello! how can i convert a string containing structured text to HTML and store the result to a variable? preferably from dtml or a python script. Jens.
Jens , I did this in dtml , although i would clearly have picked pythonscript if i were to do it again today .. i found the easiest solution to be to use a separate method for the html-rendering, as the structured-text-parameter is not available in the REQUEST.set construct i used a lot at the time.. - then , just use something like : <dtml-call "REQUEST.set('renderedHTML',makeHTMLmethod(_.None,_))"> - and the proper manage_changeProperties for saving the renderedHTML.... :-) -- Geir Bækholt Web-Developer/Zopatista geirh@funcom.com http://www.funcom.com on or about, Monday, April 30, 2001, we have reason to believe that Jens Thiel wrote something along the lines of : JT> hello! JT> how can i convert a string containing structured text to HTML and store the JT> result to a variable? preferably from dtml or a python script. JT> Jens. JT> _______________________________________________ JT> Zope maillist - Zope@zope.org JT> http://lists.zope.org/mailman/listinfo/zope JT> ** No cross posts or HTML encoding! ** JT> (Related lists - JT> http://lists.zope.org/mailman/listinfo/zope-announce JT> http://lists.zope.org/mailman/listinfo/zope-dev )
participants (2)
-
Geir B�kholt -
Jens Thiel