[Zope3-checkins] CVS: Zope3/src/zope/app/browser/container - main.pt:1.6

Stephan Richter srichter@cosmos.phy.tufts.edu
Sun, 8 Jun 2003 09:13:10 -0400


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

Modified Files:
	main.pt 
Log Message:
Rename, Cut and Copy are defined for the Contents view of IContainer;
therefore it should be also available in the generic (non-rotterdam 
specific) contents template.

I figured out that we often do not want folderish content types to inherit
from Folder, since they have to deal with local service managers. Maybe
having a SimpleFolder which excludes the possibility of Local Service
Managers would be a good solution.


=== Zope3/src/zope/app/browser/container/main.pt 1.5 => 1.6 ===
--- Zope3/src/zope/app/browser/container/main.pt:1.5	Wed Apr  9 04:09:17 2003
+++ Zope3/src/zope/app/browser/container/main.pt	Sun Jun  8 09:13:09 2003
@@ -66,9 +66,23 @@
       </table>
       <br />
 
+      <input type="submit" name="@@rename.html:method" value="Rename"
+             i18n:attributes="value container_rename_button" 
+             />
+      <input type="submit" name="@@cutObjects.html:method" value="Cut"
+             i18n:attributes="value container_cut_button" 
+             />
+      <input type="submit" name="@@copyObjects.html:method" value="Copy"
+             i18n:attributes="value container_copy_button" 
+             />
+      <input type="submit" name="@@pasteObjects.html:method" value="Paste"
+             tal:condition="view/hasClipboardContents" 
+             i18n:attributes="value container_paste_button" 
+             />
       <input type="submit" name="@@removeObjects.html:method" value="Delete"
-             tal:attributes="value string:menu_delete_button"
-             i18n:attributes="value" /> 
+             i18n:attributes="value container_delete_button"
+             i18n:domain="zope"
+             />
 
   </form>