[Zope] How can I render structured-text from PythonMethods?
Pavlos Christoforou
pavlos@gaaros.msrc.sunysb.edu
Mon, 13 Dec 1999 09:51:45 -0500 (EST)
I have not used PythonMethods yet but I assume they are like External
Methods. In which case you could import StructuredText and use the two
functions:
StructuredText.html_quote(self.body)
StructuredText.html_with_references(self.body,level=1)
where level is the base level of your text, for instance if you set it to
3 then the first header will be <H3>
Pavlos
On Mon, 13 Dec 1999 itamars@ibm.net wrote:
> I want to be able to run structured_text and newline_to_br and
> html_quoute - all the formatting options available in DTML - using
> PythonMethods. Something like:
>
> a = structured_text(self.body)
>
> is there any way to do this?
>
> _______________________________________________
> 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 )
>