[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/OFS/Container - ZopeContainerAdapter.py:1.5
Steve Alexander
steve@cat-box.net
Thu, 5 Dec 2002 08:51:15 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Container
In directory cvs.zope.org:/tmp/cvs-serv2807/lib/python/Zope/App/OFS/Container
Modified Files:
ZopeContainerAdapter.py
Log Message:
added explanatory comment
=== Zope3/lib/python/Zope/App/OFS/Container/ZopeContainerAdapter.py 1.4 => 1.5 ===
--- Zope3/lib/python/Zope/App/OFS/Container/ZopeContainerAdapter.py:1.4 Sun Dec 1 05:32:28 2002
+++ Zope3/lib/python/Zope/App/OFS/Container/ZopeContainerAdapter.py Thu Dec 5 08:51:14 2002
@@ -103,6 +103,9 @@
key = container.setObject(key, object)
# Publish an added event
+ # We explicitly get the object back from the container with
+ # container[key], because some kinds of container may choose
+ # to store a different object than the exact one we added.
object = ContextWrapper(container[key], container, name=key)
publish(container, ObjectAddedEvent(object))