[Grok-dev] Update on megrok.pagelet...
cklinger at novareto.de
Thu Feb 5 10:53:22 EST 2009
as some of you know i worked during the last days on
a grok *support* for z3c.pagelet. With the help of z3c.pagelet
it?s possible to create very flexible layouts. 
z3c.pagelet has a strong dependency to z3c.template.
This means grokking z3c.pagelet is one part of the story
the other part is z3c.template. 
We had already a short discussion about this topic on the
*grokkerdam sprint* and on the grok-devel mailinglist .
Ok so what i have done so far:
I created a megrok.pagelet addon with two new Grokkers.
this grokker allows us to specify a common Layout for our
grok application. It?s possible to register Layouts for
different contexts und different layouts.
a Pagelet is similar to a grok.View. Unlike grok.View a Pagelet
does not render only the "Page" on it?s call method, the
Pagelet renders the page into the specified Layout.
I think it?s possible to change the grokcore.view.View that it
works like a normal grok.View if no Layout is found for the context
of the View. If a Layout is found it should be possible to render
the View in the specified Layout.
I have created a sample application which show?s some of the
functionality of the megrok.pagelet add on. There are also some
basic examples of z3c.form integation with megrok.pagelet and
megrok.z3cform in the example application.
You can find the buildout of the example app here .
** Please note that there is a custom layer for the example app.
So call http://localhost:8080/++skin++myskin/YourApp/ **
Maybe you find some time to take a look on it.
I?m sure thats not perfect but it could be a good starting
point for further investigations.
Please give some feedback.
Thanks for your help.
P.S. Unfortunatly the example app has some fixed path information so you
have to adjust these in zope.conf to get the things running...
More information about the Grok-dev