[Zope3-checkins] SVN: Zope3/branches/ZopeX3-3.0/src/zope/app/container/ Made the dependency subscriber trusted

Jim Fulton jim at zope.com
Fri Aug 20 17:05:39 EDT 2004


Log message for revision 27197:
  Made the dependency subscriber trusted
  


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


-=-
Modified: Zope3/branches/ZopeX3-3.0/src/zope/app/container/configure.zcml
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/app/container/configure.zcml	2004-08-20 21:05:37 UTC (rev 27196)
+++ Zope3/branches/ZopeX3-3.0/src/zope/app/container/configure.zcml	2004-08-20 21:05:39 UTC (rev 27197)
@@ -46,6 +46,7 @@
   <subscriber
       factory=".dependency.CheckDependency"
       for="zope.app.container.interfaces.IObjectRemovedEvent"
+      trusted="y"
       />
 
   <subscriber

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-20 21:05:37 UTC (rev 27196)
+++ Zope3/branches/ZopeX3-3.0/src/zope/app/container/dependency.py	2004-08-20 21:05:39 UTC (rev 27197)
@@ -18,15 +18,9 @@
 
 from zope.app import zapi
 from zope.app.dependable.interfaces import IDependable, DependencyError
-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)
+    object = event.object
     dependency = IDependable(object, None)
     if dependency is not None:
         dependents = dependency.dependents()



More information about the Zope3-Checkins mailing list