[Zope3-checkins] CVS: Zope3/src/zope/app/content - configure.zcml:1.21
Jim Fulton
jim@zope.com
Thu, 12 Jun 2003 05:33:25 -0400
Update of /cvs-repository/Zope3/src/zope/app/content
In directory cvs.zope.org:/tmp/cvs-serv26984/src/zope/app/content
Modified Files:
configure.zcml
Log Message:
Added copy/paste/move adapters for folders.
=== Zope3/src/zope/app/content/configure.zcml 1.20 => 1.21 ===
--- Zope3/src/zope/app/content/configure.zcml:1.20 Thu May 29 12:48:16 2003
+++ Zope3/src/zope/app/content/configure.zcml Thu Jun 12 05:33:25 2003
@@ -69,6 +69,47 @@
permission="zope.View"
/>
+
+<!-- Copy/Paste/Move support -->
+<!-- We declare only for folders at this point because we don't yet
+ properly handle copy/cut/paste accross container types
+ -->
+
+<adapter
+ provides="zope.app.interfaces.container.ICopySource"
+ for="zope.app.interfaces.content.folder.IFolder"
+ permission="zope.ManageContent"
+ factory="zope.app.container.copypastemove.CopySource"
+ />
+
+<adapter
+ provides="zope.app.interfaces.container.INoChildrenCopySource"
+ for="zope.app.interfaces.content.folder.IFolder"
+ permission="zope.ManageContent"
+ factory="zope.app.container.copypastemove.NoChildrenCopySource"
+ />
+
+<adapter
+ provides="zope.app.interfaces.container.IMoveSource"
+ for="zope.app.interfaces.content.folder.IFolder"
+ permission="zope.ManageContent"
+ factory="zope.app.container.copypastemove.MoveSource"
+ />
+
+<adapter
+ provides="zope.app.interfaces.container.IPasteTarget"
+ for="zope.app.interfaces.content.folder.IFolder"
+ permission="zope.ManageContent"
+ factory="zope.app.container.copypastemove.PasteTarget"
+ />
+
+<adapter
+ provides="zope.app.interfaces.container.IPasteNamesChooser"
+ for="zope.app.interfaces.content.folder.IFolder"
+ permission="zope.ManageContent"
+ factory="zope.app.container.copypastemove.PasteNamesChooser"
+ />
+
<!-- XXX Do we really need RootFolder? -->
<content class="zope.app.content.folder.RootFolder">