[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/OFS/Container - IAdding.py:1.2
Jeremy Hylton
jeremy@zope.com
Wed, 2 Oct 2002 17:36:17 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Container
In directory cvs.zope.org:/tmp/cvs-serv25863/lib/python/Zope/App/OFS/Container
Modified Files:
IAdding.py
Log Message:
Extend defintion of add() of IAdding interface.
add() should return the added object in the context of the container.
=== Zope3/lib/python/Zope/App/OFS/Container/IAdding.py 1.1 => 1.2 ===
--- Zope3/lib/python/Zope/App/OFS/Container/IAdding.py:1.1 Thu Jun 20 16:00:20 2002
+++ Zope3/lib/python/Zope/App/OFS/Container/IAdding.py Wed Oct 2 17:35:47 2002
@@ -23,9 +23,14 @@
class IAdding(IView):
def add(content):
- """Add the content object to a container, using the name in
- contentName. If contentName is already used in container,
- raises Zope.App.OFS.Container.Exceptions.DuplicateIDError"""
+ """Add content object to container.
+
+ Add using the name in contentName. Returns the added object
+ in the context of its container.
+
+ If contentName is already used in container, raises
+ Zope.App.OFS.Container.Exceptions.DuplicateIDError.
+ """
contentName=Attribute(
"""the content name, as usually set by the Adder traverser.