Malthe Borch <[EMAIL PROTECTED]> wrote:
> In a python script I'm sending a mail using the Mailhost object. I'd like to 
> use
> a template and keep this template in the portal_skins.custom folder. So I've
> created a ZPT object that holds my template and now I wish to retrieve the
> rendered text from my script.
> 
> I've tried the CookedBody() method, but it doesn't seem to work. Any clues?

You can use yourtemplate.document_src() to get the source.
If you want the interpreted version, just call yourtemplate().

Florent

-- 
Florent Guillaume, Nuxeo (Paris, France)   CTO, Director of R&D
+33 1 40 33 71 59   http://nuxeo.com   [EMAIL PROTECTED]
_______________________________________________
Zope maillist  -  Zope@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 )

Reply via email to