[Zope3-Users] Re: View:for="*" and Class

Philipp von Weitershausen philipp at weitershausen.de
Mon Sep 11 05:38:32 EDT 2006


Sébastien VINOT wrote:
> Is it possible to associate a class with a skin template ?

Sure, but it won't help.

> I tried to "customize" an example (from chap 24 "Zope3") but
> unfortunately even if my zcml is read with no errors, the final view
> used is the one associated with my component.

Right, because when a ZPT uses a skin macro, the raw macro "byte code" 
is inserted into the the ZPT. That means all TALES variables are bound 
to the actual view, not the skin.

> Is there a way to do this ?

Define a view class for * that you will query from the macro, e.g. 
context/@@myhelperview/foo.

Philipp



More information about the Zope3-users mailing list