[Zope3-checkins] CVS: Zope3/src/zope/app/interfaces - copypastemove.py:1.3
Sidnei da Silva
sidnei@x3ng.com.br
Sun, 30 Mar 2003 10:41:30 -0500
Update of /cvs-repository/Zope3/src/zope/app/interfaces
In directory cvs.zope.org:/tmp/cvs-serv18283/src/zope/app/interfaces
Modified Files:
copypastemove.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/copypastemove.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/interfaces/copypastemove.py:1.2 Thu Mar 13 13:49:08 2003
+++ Zope3/src/zope/app/interfaces/copypastemove.py Sun Mar 30 10:41:00 2003
@@ -21,7 +21,7 @@
class IObjectCopier(Interface):
- def copyTo(target, name=None):
+ def copyTo(target, name=None, with_children=True):
"""Copy this object to the target given.
Returns the new name within the target, or None
@@ -31,6 +31,9 @@
an IObjectCopied event in the context of the target container.
If a new object is created as part of the copying process, then
an IObjectCreated event should be published.
+
+ If with_children is true and the object is folderish, copy contents,
+ else copy just the folder.
"""
def copyable():