[Zope-Checkins] CVS: Zope/lib/python/OFS/dtml - properties.dtml:1.13 propertysheets.dtml:1.4

Andreas Jung andreas at andreas-jung.com
Mon Sep 29 08:16:38 EDT 2003


Update of /cvs-repository/Zope/lib/python/OFS/dtml
In directory cvs.zope.org:/tmp/cvs-serv14952/lib/python/OFS/dtml

Modified Files:
	properties.dtml propertysheets.dtml 
Log Message:
     - Collector #1058: Several fixes for PropertySheets when used
       outside ZClasses


=== Zope/lib/python/OFS/dtml/properties.dtml 1.12 => 1.13 ===
--- Zope/lib/python/OFS/dtml/properties.dtml:1.12	Sun Dec 22 12:53:59 2002
+++ Zope/lib/python/OFS/dtml/properties.dtml	Mon Sep 29 08:16:37 2003
@@ -41,6 +41,7 @@
 </tr>
 
 <dtml-in propertyMap mapping>
+<dtml-let type="not _.has_key('type') and 'string' or type">
 <tr>
   <td align="left" valign="top" width="16">
   <dtml-if "'d' in _['sequence-item'].get('mode', 'awd')">
@@ -156,6 +157,7 @@
   </div>
   </td>
 </tr>
+</dtml-let>
 </dtml-in>
 <tr>
   <td colspan="2">&nbsp;</td>


=== Zope/lib/python/OFS/dtml/propertysheets.dtml 1.3 => 1.4 ===
--- Zope/lib/python/OFS/dtml/propertysheets.dtml:1.3	Sun Dec 22 12:53:59 2002
+++ Zope/lib/python/OFS/dtml/propertysheets.dtml	Mon Sep 29 08:16:37 2003
@@ -4,12 +4,15 @@
 <form action="&dtml-URL1;" method="post">
 <table cellspacing="0" cellpadding="2" border="0">
 <dtml-in items sort>
-<dtml-with "_(REQUEST=REQUEST, item=_['sequence-item'].aq_base)" only>
+<dtml-with "_(REQUEST=REQUEST, item=_['sequence-item'].aq_base, isDeletable=isDeletable)" only>
 <dtml-with item>
 <dtml-if id>
 <tr>
   <td align="left" valign="top">
-  <a href="&dtml-id;">&dtml-id; (&dtml-xml_namespace;)</a>
+  <dtml-if expr="isDeletable(id)"><input type=checkbox name="ids:list" value="&dtml-id;"></dtml-if>
+  </td>
+  <td align="left" valign="top">
+  <a href="&dtml-id;/manage">&dtml-id; <dtml-if xml_namespace>(<dtml-var xml_namespace>)</dtml-if></a>
   <dtml-if locked_in_session>
     <dtml-if modified_in_session>
       <img src="&dtml-BASEPATH1;/p_/locked"
@@ -25,17 +28,23 @@
 </dtml-with>
 </dtml-with>
 </dtml-in>
-</table>
-
-<table cellspacing="0" cellpadding="2" border="0">
 <tr>
-  <td align="left" valign="top">
-  </td>
-  <td align="left" valign="top">
-  <input type="submit" name="manage_addPropertySheetForm:method" 
-   class="form-element" value="Add">
+  <td colspan=2>
+    <input type="submit" name="manage_delPropertySheets:method" 
+  	 class="form-element" value="Delete">
   </td>
 </tr>
+</table>
+
+<table cellpadding=5>
+ <tr>
+    <td><span class="form-label">Name:</span> <input name="id"></td>
+    <td><span class="form-label">Namespace:</span> <input name="ns"></td>
+    <td>
+      <input type="submit" name="manage_addPropertySheet:method" 
+  	 class="form-element" value="Add">
+    </td>
+  </tr>
 </table>
 </form>
 




More information about the Zope-Checkins mailing list