[Zope3-checkins] SVN: Zope3/branches/ZopeX3-3.0/src/zope/app/container/dependency.py Added an explanation for calling removeAllProxies

Jim Fulton jim at zope.com
Fri Aug 13 11:46:07 EDT 2004


Log message for revision 27109:
  Added an explanation for calling removeAllProxies
  


Changed:
  U   Zope3/branches/ZopeX3-3.0/src/zope/app/container/dependency.py


-=-
Modified: Zope3/branches/ZopeX3-3.0/src/zope/app/container/dependency.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/app/container/dependency.py	2004-08-13 15:41:50 UTC (rev 27108)
+++ Zope3/branches/ZopeX3-3.0/src/zope/app/container/dependency.py	2004-08-13 15:46:07 UTC (rev 27109)
@@ -21,6 +21,11 @@
 from zope.proxy import removeAllProxies
 
 def CheckDependency(event):
+
+    # We have to remove the proxies here to be able to get at
+    # annotations. Perhaps this should be a trusted subscriber, but we
+    # don't have those yet.
+
     object = removeAllProxies(event.object)
     dependency = IDependable(object, None)
     if dependency is not None:



More information about the Zope3-Checkins mailing list