On Sun, Oct 24, 2010 at 2:29 PM, Tres Seaver <tsea...@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
_______________________________________________
Zope-Dev maillist  -  Zope-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )

Reply via email to