[Zope] Using ReStructuredText instead of StructuredDocument inside ZPT

John Schinnerer johnschinnerer at yahoo.com
Fri Feb 24 02:18:06 EST 2006


I have been using the Structured Document (SD) product with page
templates (to provide some content sections that a client can edit
using structured text).

Now I would like to use ReStructuredText Document (RSTD) instead of SD.

I have been using code like this in a page template to render the
content of a SD within the page template:

<div metal:fill-slot="pagebody">

<p tal:content="structure container/client_content/vision_statement">
Vision Statement

</div> <!-- end of page body slot -->

...where vision_statement is a SD object.

I expected that this would work the same if vision_statement were a
RSTD object...however it does not.  
What displays is only the unrendered, plain text content of the RSTD.

Can I use a RSTD object in the same way I have been using a SD?

If so, how do I get it to render?

This is on zope 2.7.5 with the ZReST that comes "built in."
A RSTD called directly (instead of inside a ZPT as above) renders as

John S.

Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 

More information about the Zope mailing list