[Zope3-Users] Weird behaviour of ViewPageTemplateFile()

Martin J. Laubach mjl at laubach.at
Thu Apr 10 09:39:11 EDT 2008


>>      class MyView(BrowserView):
>>          def __call__(self):
>>              pt = ViewPageTemplateFile('empty.pt')
>>              data = pt()
>>              return data
>
> try this:
>
> pt = ViewPageTemplateFile('empty.pt')
> return pt(self)

   Nope, same result:

     AttributeError: 'str' object has no attribute 'other'

   Cheers,

	mjl


More information about the Zope3-users mailing list