[Zope3-Users] Weird behaviour of ViewPageTemplateFile()

Jim Fulton jim at zope.com
Thu Apr 10 14:29:45 EDT 2008

On Apr 10, 2008, at 11:46 AM, Martin J.Laubach wrote:
> > ViewPageTemplate must be in the view's namespace, and it magically
> > fishes out the view, view's context and request, and makes them
> > available in the TAL namespace.
>  Ah, so there _IS_ heavy magic involved here. Thanks for
> clarifying that, I was already doubting my sanity!

This is exactly the same magic that methods use.   
ViewPageTemplateFiles are, like functions, meant to be used as methods  
and to be bound to instances.


Jim Fulton
Zope Corporation

More information about the Zope3-users mailing list