[Zope3-checkins] CVS: Zope3/src/zope/app/interfaces/container - __init__.py:1.9

Sidnei da Silva sidnei@x3ng.com.br
Sun, 30 Mar 2003 10:41:01 -0500


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

Modified Files:
	__init__.py 
Log Message:
Slight changes to IObjectCopier to allow copying without children. Its somewhat crufty, but I cant think of a better solution. Comes with tests :)

=== Zope3/src/zope/app/interfaces/container/__init__.py 1.8 => 1.9 ===
--- Zope3/src/zope/app/interfaces/container/__init__.py:1.8	Wed Feb 26 11:11:36 2003
+++ Zope3/src/zope/app/interfaces/container/__init__.py	Sun Mar 30 10:41:00 2003
@@ -273,11 +273,14 @@
 
 class ICopySource(Interface):
     
-    def copyObject(key, copyingTo):
+    def copyObject(key, copyingTo, with_children=True):
         '''Return the object with the given key, as the first part of a
         copy.
 
         copyingTo is the unicode path for where the copy is to.
+
+        If the object is a folder an with_children is True, then the folder
+        contents is copied too.
         '''
 
 class IPasteNamesChooser(Interface):