[ZPT] container when called from METAL

Kevin Dangoor kdangoor@webelite.com
Wed, 8 Aug 2001 16:31:52 -0400


From: "Evan Simpson"
> Kevin Dangoor wrote:
>
> > "container" in the macro page is bound to the Box, not to the Skin. It
seems
> > like container should be bound to the Skin instance, not the Box
instance.
> > Or, is there something I'm missing about container?
>
>
> When a template uses a macro, the macro is grafted into the template
> before any TAL processing.  TAL statements in a macro therefore operate
> in the same context as "native" parts of the template, and have no idea
> that they've been brought in from another template.
>
> What you're trying to do is tricky, and I'm not sure what the best way
> to do it is.
>
> Sorry,
>
> Evan @ Zope

I figured it was something like that. I also figured it would probably not
be easy to deal with. In this particular case, I have an easy workaround.

It's probably not a big deal for most usage scenarios, but it should
probably be documented somewhere...

Kevin