[Grok-dev] Accessing a METAL template from another template

Sebastian Ware sebastian at urbantalk.se
Tue Jan 15 04:28:02 EST 2008


Unfortunately it only covers accessing a template from the current  
view. This page explains what I am trying to do:

  http://www.zopelabs.com/cookbook/1053557445

Mvh Sebastian

15 jan 2008 kl. 00.15 skrev daniel:

> i think you want this?
>
> http://grok.zope.org/minitutorials/macros.html
>
> On Jan 14, 2008 12:57 PM, Sebastian Ware < sebastian at urbantalk.se>  
> wrote:
> I am trying to do something like this:
>
>   http://www.zopelabs.com/cookbook/1053557445
>
> Mvh Sebastian
>
> 14 jan 2008 kl. 18.53 skrev Sebastian Ware:
>
> > How would I define my template class and then what would the metal
> > expression look like if I wanted to access a master template from a
> > second macro template (that in turn was called by the original page
> > template).
> >
> >
> >  class Master(grok.View):
> >      grok.context(Interface)
> >
> >
> >  metal:use-macro=""
> >
> > I can't use [context/@@master/admin_template] since the template
> > doesn't have a context object defined.
> >
> > Mvh Sebastian
> > _______________________________________________
> > Grok-dev mailing list
> > Grok-dev at zope.org
> > http://mail.zope.org/mailman/listinfo/grok-dev
>
> _______________________________________________
> Grok-dev mailing list
> Grok-dev at zope.org
> http://mail.zope.org/mailman/listinfo/grok-dev
>
>
>
> -- 
>
> -- Daniel _______________________________________________
> Grok-dev mailing list
> Grok-dev at zope.org
> http://mail.zope.org/mailman/listinfo/grok-dev



More information about the Grok-dev mailing list