[Zope3-checkins] CVS: Zope3/src/zope/app/component - hooks.py:1.11.2.2

Jim Fulton jim at zope.com
Tue Sep 9 17:32:27 EDT 2003


Update of /cvs-repository/Zope3/src/zope/app/component
In directory cvs.zope.org:/tmp/cvs-serv29240/component

Modified Files:
      Tag: parentgeddon-branch
	hooks.py 
Log Message:
got more tests to pass on branch

=== Zope3/src/zope/app/component/hooks.py 1.11.2.1 => 1.11.2.2 ===
--- Zope3/src/zope/app/component/hooks.py:1.11.2.1	Mon Sep  8 14:21:34 2003
+++ Zope3/src/zope/app/component/hooks.py	Tue Sep  9 16:31:56 2003
@@ -36,10 +36,10 @@
 
     # if the context is actually a service or service manager...
     if IServiceService.isImplementedBy(clean_context):
-        sm = trustedRemoveSecurityProxy(context)
+        return trustedRemoveSecurityProxy(context)
 
     elif (ISite.isImplementedBy(clean_context)):
-        return context.getSiteManager()
+        return trustedRemoveSecurityProxy(context.getSiteManager())
     else:
         container = getattr(context, '__parent__', None)
         if container is None:




More information about the Zope3-Checkins mailing list