[Checkins] SVN: z3c.tabular/trunk/ Made the pagetemplates provide macros to make it easier to replace specific contents
Adam Groszer
cvs-admin at zope.org
Tue Jun 19 13:48:47 UTC 2012
Log message for revision 126973:
Made the pagetemplates provide macros to make it easier to replace specific contents
Changed:
U z3c.tabular/trunk/CHANGES.txt
U z3c.tabular/trunk/src/z3c/tabular/browser.zcml
U z3c.tabular/trunk/src/z3c/tabular/formtable.pt
U z3c.tabular/trunk/src/z3c/tabular/subformtable.pt
U z3c.tabular/trunk/src/z3c/tabular/table.pt
-=-
Modified: z3c.tabular/trunk/CHANGES.txt
===================================================================
--- z3c.tabular/trunk/CHANGES.txt 2012-06-19 10:07:20 UTC (rev 126972)
+++ z3c.tabular/trunk/CHANGES.txt 2012-06-19 13:48:43 UTC (rev 126973)
@@ -13,7 +13,8 @@
0.6.2 (unreleased)
------------------
-- Nothing changed yet.
+- Made the pagetemplates provide macros to make it easier to replace specific
+ contents
0.6.1 (2012-06-19)
Modified: z3c.tabular/trunk/src/z3c/tabular/browser.zcml
===================================================================
--- z3c.tabular/trunk/src/z3c/tabular/browser.zcml 2012-06-19 10:07:20 UTC (rev 126972)
+++ z3c.tabular/trunk/src/z3c/tabular/browser.zcml 2012-06-19 13:48:43 UTC (rev 126973)
@@ -22,4 +22,22 @@
layer="zope.publisher.interfaces.browser.IBrowserRequest"
/>
+ <z3c:macro
+ name="z3c-tabular-table"
+ template="formtable.pt"
+ layer="zope.publisher.interfaces.browser.IBrowserRequest"
+ />
+
+ <z3c:macro
+ name="z3c-tabular-formtable"
+ template="formtable.pt"
+ layer="zope.publisher.interfaces.browser.IBrowserRequest"
+ />
+
+ <z3c:macro
+ name="z3c-tabular-subformtable"
+ template="formtable.pt"
+ layer="zope.publisher.interfaces.browser.IBrowserRequest"
+ />
+
</configure>
Modified: z3c.tabular/trunk/src/z3c/tabular/formtable.pt
===================================================================
--- z3c.tabular/trunk/src/z3c/tabular/formtable.pt 2012-06-19 10:07:20 UTC (rev 126972)
+++ z3c.tabular/trunk/src/z3c/tabular/formtable.pt 2012-06-19 13:48:43 UTC (rev 126973)
@@ -1,4 +1,5 @@
-<div metal:use-macro="macro:form">
+<div metal:define-macro="z3c-tabular-formtable"
+ metal:extend-macro="macro:form">
<div metal:fill-slot="main"
tal:define="batch view/renderBatch">
<div class="tabluarTable">
Modified: z3c.tabular/trunk/src/z3c/tabular/subformtable.pt
===================================================================
--- z3c.tabular/trunk/src/z3c/tabular/subformtable.pt 2012-06-19 10:07:20 UTC (rev 126972)
+++ z3c.tabular/trunk/src/z3c/tabular/subformtable.pt 2012-06-19 13:48:43 UTC (rev 126973)
@@ -1,4 +1,5 @@
-<div metal:use-macro="macro:form">
+<div metal:define-macro="z3c-tabular-subformtable"
+ metal:extend-macro="macro:form">
<div metal:fill-slot="main">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
Modified: z3c.tabular/trunk/src/z3c/tabular/table.pt
===================================================================
--- z3c.tabular/trunk/src/z3c/tabular/table.pt 2012-06-19 10:07:20 UTC (rev 126972)
+++ z3c.tabular/trunk/src/z3c/tabular/table.pt 2012-06-19 13:48:43 UTC (rev 126973)
@@ -1,4 +1,5 @@
-<div metal:use-macro="macro:form">
+<div metal:define-macro="z3c-tabular-table"
+ metal:extend-macro="macro:form">
<div metal:fill-slot="main"
tal:define="batch view/renderBatch">
<div class="tabluarTable">
More information about the checkins
mailing list