[Checkins] SVN: z3c.contents/trunk/ Include batch in template. The
same is already used in zamplugin.sitemanager
Roger Ineichen
roger at projekt01.ch
Sat Mar 1 22:54:18 EST 2008
Log message for revision 84393:
Include batch in template. The same is already used in zamplugin.sitemanager
Need to add tests for this
Changed:
U z3c.contents/trunk/TODO.txt
U z3c.contents/trunk/src/z3c/contents/README.txt
U z3c.contents/trunk/src/z3c/contents/contents.pt
-=-
Modified: z3c.contents/trunk/TODO.txt
===================================================================
--- z3c.contents/trunk/TODO.txt 2008-03-02 03:32:00 UTC (rev 84392)
+++ z3c.contents/trunk/TODO.txt 2008-03-02 03:54:18 UTC (rev 84393)
@@ -4,4 +4,5 @@
- implement functional doc tests with real traversable contents.html view
-- implement batch and test with more items
+- add tests for batching, the registered template works but need some more
+ nice rendering hooks. Implement additional div tags for batch links
Modified: z3c.contents/trunk/src/z3c/contents/README.txt
===================================================================
--- z3c.contents/trunk/src/z3c/contents/README.txt 2008-03-02 03:32:00 UTC (rev 84392)
+++ z3c.contents/trunk/src/z3c/contents/README.txt 2008-03-02 03:54:18 UTC (rev 84393)
@@ -826,3 +826,9 @@
>>> sorted(secondContainer.items())
[(u'fifth', <Content Second 2>), (u'first', <Content First 1>),
(u'zero', <Content Zero 0>)]
+
+
+Batching
+--------
+
+TODO: add tests for batching
Modified: z3c.contents/trunk/src/z3c/contents/contents.pt
===================================================================
--- z3c.contents/trunk/src/z3c/contents/contents.pt 2008-03-02 03:32:00 UTC (rev 84392)
+++ z3c.contents/trunk/src/z3c/contents/contents.pt 2008-03-02 03:54:18 UTC (rev 84393)
@@ -1,5 +1,10 @@
<div metal:use-macro="macro:form">
<div metal:fill-slot="main">
<tal:block replace="structure view/renderTable">table</tal:block>
+ <tal:block define="batch view/renderBatch">
+ <div class="batch" tal:condition="batch">
+ <tal:block replace="structure batch">table</tal:block>
+ </div>
+ </tal:block>
</div>
</div>
More information about the Checkins
mailing list