'portal_text' tool noodling (was Re: [Zope-CMF] Re: reStructuredText)

seb bacon seb@jamkit.com
Fri, 25 Oct 2002 13:19:55 +0100


> E.g. for form input::

>   repr = text_tool.getFormRepresentation( context, REQUEST.form )
>   context.update( repr )

> On output::

> getOutputRepresentation(here, raw_repr, 'html')

That's good stuff.

The tool should have a 'generate on edit' knob on the representation 
chains, so common chains can be pre-generated at the point of editing, 
if so required.

Examples where this may be desirable are: process-intensive 
transformations which may block the rendering of the representation, 
such as a PDF output; or spell-checking where you pass the text through 
aspell or similar.

seb