[Zope3-checkins] CVS: Zope3/src/zope/app/interfaces/content - folder.py:1.4
Sidnei da Silva
sidnei@x3ng.com.br
Sun, 30 Mar 2003 10:37:29 -0500
Update of /cvs-repository/Zope3/src/zope/app/interfaces/content
In directory cvs.zope.org:/tmp/cvs-serv17999/src/zope/app/interfaces/content
Modified Files:
folder.py
Log Message:
Adding helper interface for IObjectCopier. DAV has a requirement that you should be able to copy a folder but not its contents
=== Zope3/src/zope/app/interfaces/content/folder.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/interfaces/content/folder.py:1.3 Sat Dec 28 09:13:25 2002
+++ Zope3/src/zope/app/interfaces/content/folder.py Sun Mar 30 10:37:28 2003
@@ -20,8 +20,10 @@
from zope.app.interfaces.traversing import IContainmentRoot
from zope.app.interfaces.container import IContainer
from zope.app.interfaces.services.service import IServiceManagerContainer
+from zope.interface import Interface
+from zope.app.interfaces.annotation import IAttributeAnnotatable
-class IFolder(IContainer, IServiceManagerContainer):
+class IFolder(IContainer, IServiceManagerContainer, IAttributeAnnotatable):
"""The standard Zope Folder object interface."""
class IRootFolder(IFolder, IContainmentRoot):
@@ -29,3 +31,12 @@
class IFolderAdding(IAdding):
pass
+
+class ICloneWithoutChildren(Interface):
+
+ def cloneWithoutChildren(self):
+ """Returns a clone of this folder-like object, without any
+ subobjects. Can raise NotImplementedError if this is not
+ available."""
+
+