[Zope3-checkins] CVS: Zope3/src/zope/app/schemacontent/browser - permission_edit.pt:1.3

Garrett Smith garrett at mojave-corp.com
Fri May 7 15:42:31 EDT 2004


Update of /cvs-repository/Zope3/src/zope/app/schemacontent/browser
In directory cvs.zope.org:/tmp/cvs-serv31875/src/zope/app/schemacontent/browser

Modified Files:
	permission_edit.pt 
Log Message:
Deleted label and row methods from browser widget. Developers can
reuse 'row' logic via a new form macro 'widget_row'. E.g. instead of:

  <tal:block content="struct widget/row" />

you'd use:

  <metal:block use-macro="context/@@form_macros/widget_row" />

Note that 'widget' must be defined where the macro is used.


=== Zope3/src/zope/app/schemacontent/browser/permission_edit.pt 1.2 => 1.3 ===
--- Zope3/src/zope/app/schemacontent/browser/permission_edit.pt:1.2	Tue Mar 23 17:07:52 2004
+++ Zope3/src/zope/app/schemacontent/browser/permission_edit.pt	Fri May  7 15:42:30 2004
@@ -13,22 +13,19 @@
                condition="widgets">
       <h4 i18n:translate="">Map permissions to Schema fields</h4>
 
-      <tal:block repeat="widget widgets">
-        <h5 tal:content="string:${widget/fieldTitle} (${widget/fieldName})">
+      <tal:block repeat="pwidget widgets">
+        <h5 tal:content="string:${pwidget/fieldTitle} (${pwidget/fieldName})">
           FieldName (Field Title)
         </h5>
-        <div class="row" tal:replace="structure widget/getter/row">
-          <div class="label" i18n:translate="">Get Permission</div>
-          <div class="field">
-
-          </div>
-        </div>
-        <div class="row" tal:replace="structure widget/setter/row">
-          <div class="label" i18n:translate="">Set Permission</div>
-          <div class="field">
-
-          </div>
+        
+        <div class="row" tal:define="widget nocall:pwidget/getter">
+          <metal:block use-macro="context/@@form_macros/widget_row" />
         </div>
+    
+        <div class="row" tal:define="widget nocall:pwidget/setter">
+          <metal:block use-macro="context/@@form_macros/widget_row" />
+        </div>        
+        
         <br />
       </tal:block>
       <div class="row">




More information about the Zope3-Checkins mailing list