[Zope3-checkins] CVS: Zope3/src/zope/app/publisher/browser -
resources.py:1.11
Jim Fulton
cvs-admin at zope.org
Fri Nov 21 12:10:32 EST 2003
Update of /cvs-repository/Zope3/src/zope/app/publisher/browser
In directory cvs.zope.org:/tmp/cvs-serv30708/src/zope/app/publisher/browser
Modified Files:
resources.py
Log Message:
Changed to use the resource service and removed a silly extra argument
=== Zope3/src/zope/app/publisher/browser/resources.py 1.10 => 1.11 ===
--- Zope3/src/zope/app/publisher/browser/resources.py:1.10 Sun Sep 21 13:32:40 2003
+++ Zope3/src/zope/app/publisher/browser/resources.py Fri Nov 21 12:10:31 2003
@@ -20,7 +20,7 @@
from zope.publisher.browser import BrowserView
from zope.publisher.interfaces.browser import IBrowserPublisher
from zope.component import getService
-from zope.app.services.servicenames import Resources as ResourceService
+from zope.app.services.servicenames import Presentation
from zope.exceptions import NotFoundError
from zope.interface import implements
from zope.app.location import locate
@@ -34,8 +34,8 @@
def publishTraverse(self, request, name):
'''See interface IBrowserPublisher'''
- resource_service = getService(self, ResourceService)
- resource = resource_service.queryResource(self, name, request)
+ resource_service = getService(self, Presentation)
+ resource = resource_service.queryResource(name, request)
if resource is None:
raise NotFoundError(self, name)
More information about the Zope3-Checkins
mailing list