[Zope] Calling ReST from DTML

Andreas Jung lists at zopyx.com
Fri Jun 25 13:33:56 EDT 2004


I answered you already through private mail that the conversion takes place
in the html4css1.py write in reStructuredText. I has nothing to do with 
DTML.
And the solution is as explained to write your own html writter and pass 
the name
of the writer to the HTML() method or reST.

-aj

--On Freitag, 25. Juni 2004 10:22 Uhr -0700 John Maxwell <jmax at sfu.ca> 
wrote:

> Pardon if this is an old q... the search engine claims to have never
> heard of restructured text.
>
> I have a restructured-text document (in Zope 2.7). It renders perfectly.
> I want to embed it in a DTML page, so I call it like so:
>
>    <dtml-var restcontent ftm="restructured-text">
>
> Works great, and it renders fine. BUT: where the ReST renderer converts
> literal straight quotes " to &quot entities, when I bring it in via DTML,
> the entity gets converted again, so I see &quot literally on my page.
>
> There must be some way of preventing this, short of re-writing the
> renderer. Anybody have any experience with this? My complaint isn't with
> ReST, but with how DTML filtes ReST.
>
>
>   - John Maxwell
>     jmax at sfu.ca
>
> _______________________________________________
> Zope maillist  -  Zope at zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )



Andreas Jung
zopyx.com - Software Development and Consulting Andreas Jung


More information about the Zope mailing list