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

Jim Fulton jim at zope.com
Thu Sep 11 07:32:02 EDT 2003


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

Modified Files:
      Tag: parentgeddon-branch
	hooks.py 
Log Message:
Got zope running with global principals

=== Zope3/src/zope/app/component/hooks.py 1.11.2.3 => 1.11.2.4 ===
--- Zope3/src/zope/app/component/hooks.py:1.11.2.3	Tue Sep  9 17:45:08 2003
+++ Zope3/src/zope/app/component/hooks.py	Thu Sep 11 06:31:31 2003
@@ -26,6 +26,7 @@
 from zope.security.proxy import trustedRemoveSecurityProxy
 from zope.app.traversing import IContainmentRoot
 from zope.app.interfaces.location import ILocation
+from zope.app.location import locate
 
 def getServiceManager_hook(context, local=False, recurse=False):
 
@@ -66,7 +67,6 @@
     views = getService(context, 'Views')
     view = views.queryView(object, name, request, default)
     if ILocation.isImplementedBy(view):
-        view.__name__ = name
-        view.__parent__ = object
+        locate(view, object, name)
 
     return view




More information about the Zope3-Checkins mailing list