[Zope3-checkins] CVS: Zope3/src/zope/app/browser/container - configure.zcml:1.10 main.pt:1.7

Stephan Richter srichter@cosmos.phy.tufts.edu
Sun, 8 Jun 2003 12:40:17 -0400


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

Modified Files:
	configure.zcml main.pt 
Log Message:
Cleaned up a couple of things about container versus folder:

1. Copy, Cut and Paste support is defined in zope.app.container, so 
   IContainer should be able to execute these actions, not only Folder.

2. Show Copy, Cut and Paste button even though there is no content.

3. Remove IFolder specific tests and ZCML declarations.

Wow, I should have found this bug a long time ago, when I was working on 
Zwiki, but I cheated back then by using Folder as base class...writing
documentation really helps to track these type of problems down.

XXX: The content and browser/content directives look very aged and could be
     redone much better now.


=== Zope3/src/zope/app/browser/container/configure.zcml 1.9 => 1.10 ===
--- Zope3/src/zope/app/browser/container/configure.zcml:1.9	Tue Mar 25 13:31:48 2003
+++ Zope3/src/zope/app/browser/container/configure.zcml	Sun Jun  8 12:39:45 2003
@@ -14,6 +14,21 @@
    
        </view>
 
+  <pages
+      for="zope.app.interfaces.container.IContainer"
+      permission="zope.ManageContent" 
+      class=".contents.Contents">
+
+    <page name="contents.html" attribute="contents" />
+    <page name="removeObjects.html" attribute="removeObjects" />
+    <page name="cutObjects.html" attribute="cutObjects" />
+    <page name="copyObjects.html" attribute="copyObjects" />
+    <page name="pasteObjects.html" attribute="pasteObjects" />
+    <page name="renameObjects.html" attribute="renameObjects" />
+    <page name="rename.html" attribute="rename" />
+
+  </pages>
+
   <page
       for="zope.app.interfaces.container.IReadContainer"
       name="find.html" 


=== Zope3/src/zope/app/browser/container/main.pt 1.6 => 1.7 ===
--- Zope3/src/zope/app/browser/container/main.pt:1.6	Sun Jun  8 09:13:09 2003
+++ Zope3/src/zope/app/browser/container/main.pt	Sun Jun  8 12:39:45 2003
@@ -9,13 +9,13 @@
 
   <form name="containerContentsForm" method="get" action="." 
         tal:define="container_contents view/listContentInfo"
-        tal:condition="container_contents"
         >
 
         <table id="sortable" class="listing" summary="Content listing"
              cellpadding="2" cellspacing="0" 
              metal:define-macro="contents_table"
              i18n:attributes="summary"
+             tal:condition="container_contents"
              >
     
         <thead>