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

Sebastian Ware sebastian at urbantalk.se
Mon Jan 14 12:57:54 EST 2008


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



More information about the Grok-dev mailing list