[Grok-dev] Portlets (and maybe other skinning).

Lennart Regebro regebro at gmail.com
Sun Mar 18 03:17:32 EDT 2007


On 3/18/07, Darryl Cousins <darryl at darrylcousins.net.nz> wrote:
> On Sun, 2007-03-18 at 00:21 +0100, Lennart Regebro wrote:
>
> > > Shouldn't the layer be responsible for looking up providers/viewlets to
> > > use. ie only those registered to the layer? And wouldn't this avoid the
> > > drawback you mention: <quote>The main drawback with this is that
> > > everything gets the portlets applied to them</quote>?
> >
> > Could you expand on this?
> >
>
> Instead of having the publication object look up main template it would
> look up a layer and the layer will then provide the main template,
> providers, viewlets etc which are registered with that layer for the
> context.

So your saying I can get a layer applied only to Grok-content this
way, and therefore get this wrapping to happen only for Grok-content?
That seems like a reasonable way of solving that problem.

-- 
Lennart Regebro: Zope and Plone consulting.
http://www.colliberty.com/
+33 661 58 14 64


More information about the Grok-dev mailing list