[Zope] Rendering Product by index_html

Andreas Jung lists at zopyx.com
Sat Apr 22 08:22:10 EDT 2006



--On 22. April 2006 14:17:00 +0200 Thomas Adams 
<thomas.adams at onlinehome.de> wrote:

> Hello,
>
> on an own product (derived from ObjectManager) I try to code a render
> method, therefore I've coded this first
>
> def index_html(self):
>     return Globals.DTMLFile('dtml/viewKBArticle',globals())

usually you define

  index_html = Globals.DTMLFile('dtml/...', globals())

This is supposed to work and very common in almost all Zope 2 based 
products.

-aj



-- 
ZOPYX Ltd. & Co. KG - Charlottenstr. 37/1 - 72070 Tübingen - Germany
Web: www.zopyx.com - Email: info at zopyx.com - Phone +49 - 7071 - 793376
E-Publishing, Python, Zope & Plone development, Consulting
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope/attachments/20060422/127603bd/attachment.bin


More information about the Zope mailing list