> 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
Okay, then this leads me to the strong suspicion that what I'm
(mis)using ViewPageTemplateFiles for is the wrong way to attack
What I'm doing is something along the lines of
pagename = somehow_compute_new_page_name(self.request,
pt = ViewPageTemplateFile(pagename)
return pt.__get__(self, self.__class__)()
but quite obviously, that's not how it's meant to be used, is it...
Perhaps I need a radically different approach?
Zope3-users mailing list