[Zope3-Users] Using restructered text

Frank Burkhardt fbo2 at gmx.net
Mon Jun 19 07:56:25 EDT 2006


On Thu, Jun 15, 2006 at 10:08:38PM +0200, Florian Lindner wrote:
> Hello,
> how can I use (render to html) restructered text that is in a static file?

This might help (untested, I like Twiki-Source better :-) ):

rest=zapi.createObject(None,'zope.source.rest',my_restrucuted_textstring)
view=getMultiAdapter((removeAllProxies(rest),request),IBrowserView,'')
html=view()

You just have to read your static file's content into the string
'my_restrucuted_textstring' before this example code is executed.

Regards,

Frank


More information about the Zope3-users mailing list