[Zope3-checkins] CVS: Zope3/src/zope/app/interfaces/container - __init__.py:1.12
Sidnei da Silva
sidnei@x3ng.com.br
Mon, 23 Jun 2003 13:17:38 -0400
Update of /cvs-repository/Zope3/src/zope/app/interfaces/container
In directory cvs.zope.org:/tmp/cvs-serv14183/src/zope/app/interfaces/container
Modified Files:
__init__.py
Log Message:
1. Whitespace cleanup. 2. Docstring fixing. 3. Modified DAV code and tests to append '/' to the path if the last element is 'dir-like'. 4. Support for MKCOL with tests + functional tests. 5. Refactored DAV functional tests into a base class for reusing
=== Zope3/src/zope/app/interfaces/container/__init__.py 1.11 => 1.12 ===
--- Zope3/src/zope/app/interfaces/container/__init__.py:1.11 Sun Jun 15 12:38:29 2003
+++ Zope3/src/zope/app/interfaces/container/__init__.py Mon Jun 23 13:17:07 2003
@@ -264,31 +264,31 @@
If the object is simply being added and not being copied,
'copiedFrom' will be None.
-
+
Clients calling this method must be careful to use
'copiededFrom' as a keyword argument rather than a positional
argument, to avoid confusion if the object is both
IMoveNotifiable and ICopyNotifiable. """
class IPasteTarget(Interface):
-
+
def acceptsObject(key, obj):
'''Allow the container to say if it accepts the given wrapped
object.
-
+
Returns True if the object would be accepted as contents of
this container. Otherwise, returns False.
'''
def pasteObject(key, obj):
'''Add the given object to the container under the given key.
-
+
Raises a ValueError if key is an empty string, unless the
this object chooses a different key.
-
+
Returns the key used, which might be different than the
given key.
-
+
This method must not issue an IObjectAddedEvent, nor must it
call the afterAddHook hook of the object.
However, it must publish an IObjectModified event for the
@@ -302,13 +302,13 @@
first part of a move.
movingTo is the unicode path for where the move is to.
- This method should not publish an IObjectRemovedEvent, nor should
+ This method should not publish an IObjectRemovedEvent, nor should
it call the afterDeleteHook method of the object.
However, it must publish an IObjectModified event for the container.
'''
class ICopySource(Interface):
-
+
def copyObject(key, copyingTo):
'''Return the object with the given key, as the first part of a
copy.
@@ -317,7 +317,7 @@
'''
class INoChildrenCopySource(ICopySource):
-
+
def copyObjectWithoutChildren(key, copyingTo):
'''Return the object with the given key, without any children,
as the first part of a copy.
@@ -329,7 +329,7 @@
class IPasteNamesChooser(Interface):
"""Containers automatically chooses a new name for the object if the
- given one is already choosen.
+ given one is already choosen.
"""
def getNewName(obj, key):