[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/OFS/Container - IContainer.py:1.3

Steve Alexander steve@cat-box.net
Tue, 11 Jun 2002 16:19:08 -0400


Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Container
In directory cvs.zope.org:/tmp/cvs-serv29976/lib/python/Zope/App/OFS/Container

Modified Files:
	IContainer.py 
Log Message:
Added slight qualification to setObject(). It need not raise a ValueError
on an empty string when the container chooses its own key.


=== Zope3/lib/python/Zope/App/OFS/Container/IContainer.py 1.2 => 1.3 ===
         """Add the given object to the container under the given key.
 
-        Raises a ValueError if key is an empty string.
+        Raises a ValueError or if key is an empty string, unless the
+        container chooses a different key.
 
-        Returns the key used, which might be different than the given key
+        Returns the key used, which might be different than the given key.
         """
 
     def __delitem__(key):