[Zope] zpt for management views?
Dylan Reinhardt
zope@dylanreinhardt.com
Tue, 18 Feb 2003 11:05:54 -0800
At 10:16 AM 2/18/2003, Mark McEahern wrote:
>When creating a Zope Product:
>
>1) Is it possible to use ZPT instead of DTML for management views?
Yep. Use:
from Products.PageTemplates.PageTemplateFile import PageTemplateFile
class my_class:
some_mgt_page = PageTemplateFile('path_from_product_folder', globals())
>2) If it is possible, are there downsides?
None I'm aware of.
>3) Whether it's possible or not, is there any reason why the Zope Book
>doesn't mention it to forestall people like me from asking what is likely a
>FAQ? <wink>
Inertia and DTML's perception as easier, perhaps. That or nobody has
written it yet. :-)
HTH,
Dylan