[Checkins] SVN: Sandbox/cklinger/megrok.pagelet/trunk/src/megrok/pagelet/ Update README.txt and fix an error in test
Christian Klinger
cklinger at novareto.de
Wed Mar 18 04:45:14 EDT 2009
Log message for revision 98218:
Update README.txt and fix an error in test
Changed:
U Sandbox/cklinger/megrok.pagelet/trunk/src/megrok/pagelet/README.txt
U Sandbox/cklinger/megrok.pagelet/trunk/src/megrok/pagelet/tests/test_pagelet.py
-=-
Modified: Sandbox/cklinger/megrok.pagelet/trunk/src/megrok/pagelet/README.txt
===================================================================
--- Sandbox/cklinger/megrok.pagelet/trunk/src/megrok/pagelet/README.txt 2009-03-18 05:26:55 UTC (rev 98217)
+++ Sandbox/cklinger/megrok.pagelet/trunk/src/megrok/pagelet/README.txt 2009-03-18 08:45:13 UTC (rev 98218)
@@ -1,11 +1,17 @@
MEGROK PAGELET
==============
-This package try to grok the *template* component form z3c.template.
-z3c.template gives us a new option in layout story for grok.
+This package try to bring the functionality of z3c.template and
+z3c.pagelet to grok.
+
+z3c.template gives us a alternative for the zpt:metal layout based system in grok.
+The z3c.pagelet has the advantage that it´s possible to register layouts with help of
+the zope-component-architecuture this allows you to change or modify layouts
+without touching the *master* macro.
+
This means you have megrok.pagelet.Layout component which holds
-the layout. Instead of using grok.View you have to take megrok.pagelet.
-Pagelet for normal BrowserViews.
+the layout. Instead of using grok.View you have to take
+megrok.pagelet.Pagelet for normal BrowserViews.
If you need more information about z3c.template please look here [1].
@@ -40,7 +46,7 @@
Ok instead of using the common grok.View for our BrowserViews we use now
megrok.pagelet.Paglet. This component has one difference to a normal
-grok.View. The difference is in the __call__ method of the megrok.pagelet.Pagelet.
+grok.View. This difference is in the __call__ method of the megrok.pagelet.Pagelet.
This means that the __call__ method of a Pagelet does not only return the renderd
"template" of the Pagelet. The __call__ first search for the layout in given context
and layer and then it renders the "template" in this layout.
Modified: Sandbox/cklinger/megrok.pagelet/trunk/src/megrok/pagelet/tests/test_pagelet.py
===================================================================
--- Sandbox/cklinger/megrok.pagelet/trunk/src/megrok/pagelet/tests/test_pagelet.py 2009-03-18 05:26:55 UTC (rev 98217)
+++ Sandbox/cklinger/megrok.pagelet/trunk/src/megrok/pagelet/tests/test_pagelet.py 2009-03-18 08:45:13 UTC (rev 98218)
@@ -15,9 +15,9 @@
</html>
>>> print view.render()
- <b> I am a MotherFucking pagelet </b>
+ <b> I am a pagelet </b>
-What happens if we don´t have a Layout for a pagelet
+What happens if we don not have a Layout for a pagelet
>>> document = Document()
>>> view = getMultiAdapter((document, request), name='documentpagelet')
More information about the Checkins
mailing list