[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/container/browser/contents.p indirect enabling of the delete button through the view; this helps some

Fred L. Drake, Jr. fdrake at gmail.com
Thu Oct 14 10:40:34 EDT 2004


Log message for revision 28189:
  indirect enabling of the delete button through the view; this helps some
  forms of reuse just a little
  

Changed:
  U   Zope3/trunk/src/zope/app/container/browser/contents.pt
  U   Zope3/trunk/src/zope/app/container/browser/contents.py

-=-
Modified: Zope3/trunk/src/zope/app/container/browser/contents.pt
===================================================================
--- Zope3/trunk/src/zope/app/container/browser/contents.pt	2004-10-14 14:27:03 UTC (rev 28188)
+++ Zope3/trunk/src/zope/app/container/browser/contents.pt	2004-10-14 14:40:32 UTC (rev 28189)
@@ -133,11 +133,10 @@
                />
         <input type="submit" name="container_delete_button" value="Delete"
                i18n:attributes="value container-delete-button"
-			   tal:condition="container_contents"
+               tal:condition="view/supportsDelete"
                i18n:domain="zope"
                />
 
-
 	<div tal:condition="context/@@+/isSingleMenuItem" tal:omit-tag="" 
 	     tal:define="has_custom_add_view context/@@+/hasCustomAddView; 
 			 names_required context/@@+/namesAccepted">

Modified: Zope3/trunk/src/zope/app/container/browser/contents.py
===================================================================
--- Zope3/trunk/src/zope/app/container/browser/contents.py	2004-10-14 14:27:03 UTC (rev 28188)
+++ Zope3/trunk/src/zope/app/container/browser/contents.py	2004-10-14 14:40:32 UTC (rev 28189)
@@ -118,6 +118,7 @@
 
         self.supportsCut = info
         self.supportsCopy = info
+        self.supportsDelete = info
         self.supportsPaste = self.pasteable()
         self.supportsRename = (
             self.supportsCut and



More information about the Zope3-Checkins mailing list