[Zope-CMF] Making a CMF Document render DTML

Stefan H. Holek stefan@epy.co.at
Mon, 23 Sep 2002 11:55:01 +0200


You could create an external method like this:

from DocumentTemplate import HTML

def exec_as_dtml(content, client=None, REQUEST={}, **kw):
    "Execute the string passed in 'content' as DTML"
    return apply(HTML(content), (client, REQUEST), kw)

HTH,
Stefan


--On Donnerstag, 19. September 2002 17:06 -0400 
Jean-Francois.Doyon@CCRS.NRCan.gc.ca wrote:

> Hello,
>
> Has anyone ever made a CMF Document (or any other CMFDefault Object for
> that matter) render DTML ?
>
> I would like to have the contents of the CMF Document render the dtml
> within it, something not currently done.
>

--
Those who write software only for pay should go hurt some other field.
/Erik Naggum/