[Zope-dev] SVN: five.pt/trunk/src/five/pt/ The container should be the Acquisition.aq_parent.
Hanno Schlichting
hanno at hannosch.eu
Sun Oct 24 11:57:57 EDT 2010
On Sun, Oct 24, 2010 at 2:29 PM, Tres Seaver <tseaver at palladion.com> wrote:
> 'container' is supposed to be the folder which holds the script /
> template, not the context. In a CMF site, that will typically be the
> site root, given the way items in skin layers appear to be direct
> attributes of the portal object. For purposes of Five views, the "view
> object" seemss like the right object to be the 'container' for the
> template: if that is the case here (hard to see from just the diff), great.
Note this comment from Products.Five.browser.pagetemplatefile in the
pt_getContext method (made during the AQ vs. parent pointer work):
namespace.update(
here=obj,
# philiKON thinks container should be the view,
# but BBB is more important than aesthetics.
container=obj,
...
So in view page templates container and context have historically
always been the same. So far we said BBB trumps anything else here.
Hanno
More information about the Zope-Dev
mailing list