[z3-five] Fwd: file location in ViewPageTemplateFile [correction]

Matt matt.halstead at auckland.ac.nz
Thu Apr 12 06:28:16 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',
myproduct.__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