[Grok-dev] Portlets (and maybe other skinning).
Lennart Regebro
regebro at gmail.com
Sat Mar 17 19:21:38 EDT 2007
On 3/18/07, Darryl Cousins <darryl at darrylcousins.net.nz> wrote:
> Currently the only templates used on a view are those directly in
> 'app_templates' directory (or the render method). If I understood
> correctly your plan is to look up a main template with the publisher.
>
> <quote>I'm currently looking into replacing the publication object with
> something that looks up a main template and uses that</quote>
>
> What I am trying to suggest is that this main template should only be in
> a skin or layer.
Sure, why not. How to determine the main template is completely
orthogonal to what you do with it. :-)
> 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?
--
Lennart Regebro: Zope and Plone consulting.
http://www.colliberty.com/
+33 661 58 14 64
More information about the Grok-dev
mailing list