[z3-five] file location in ViewPageTemplateFile
Matt
matt.halstead at gmail.com
Thu Apr 12 06:26:45 CEST 2007
Hi,
I have the following in a doctest
>>> from Products.Five.browser import BrowserView
>>> from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile
>>> from Products import myproduct
>>> class ViewBlah(BrowserView):
...
... __call__ = ViewPageTemplateFile('tests/viewblah.pt',
rdftool.__dict__)
>>>
where viewblah.pt's path is:
$INSTANCEHOME/Products/myproduct/tests/viewblah.pt
While this does end up finding and binding the template viewblah.pt to
ViewBlah, it doesn't look like the way this should be done.
My current environment is Zope 2.9.6 and Five 1.4.2
cheers
Matt
More information about the z3-five
mailing list