[Zope] Call PageTemplateFile class instances
Andreas Jung
lists at zopyx.com
Thu Nov 13 12:23:51 EST 2008
On 13.11.2008 17:53 Uhr, Peter Bengtsson wrote:
> This used to work in zope 2.8 but not now in zope 2.10 (actually zope
> 2.10.7 to be exact)
>
> from Products.PageTemplates.PageTemplateFile import PageTemplateFile
> class MyProduct(Folder):
> meta_type = "bla"
> page = PageTemplateFile('zpt/foo.pt', globals())
>
> def render_page(self):
> html = self.page(self.REQUEST) # ERROR!!
Are you sure that you don't have to pass the REQUEST as a keyword
parameter?
-aj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lists.vcf
Type: text/x-vcard
Size: 316 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope/attachments/20081113/13d8fcb5/attachment.vcf
More information about the Zope
mailing list