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

Jim Fulton cvs-admin at zope.org
Fri Nov 21 12:11:28 EST 2003


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

Modified Files:
	hooks.py 
Log Message:
View service -> presentation service


=== Zope3/src/zope/app/component/hooks.py 1.12 => 1.13 ===
--- Zope3/src/zope/app/component/hooks.py:1.12	Sun Sep 21 13:31:23 2003
+++ Zope3/src/zope/app/component/hooks.py	Fri Nov 21 12:11:28 2003
@@ -27,6 +27,7 @@
 from zope.app.traversing import IContainmentRoot
 from zope.app.interfaces.location import ILocation
 from zope.app.location import locate
+from zope.component.servicenames import Presentation
 
 def getServiceManager_hook(context, local=False, recurse=False):
 
@@ -64,8 +65,8 @@
 def queryView(object, name, request, default=None, context=None):
     if context is None:
         context = object
-    views = getService(context, 'Views')
-    view = views.queryView(object, name, request, default)
+    views = getService(context, Presentation)
+    view = views.queryView(object, name, request, default=default)
     if ILocation.isImplementedBy(view):
         locate(view, object, name)
 




More information about the Zope3-Checkins mailing list