[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/ZopePublication/Browser - Publication.py:1.1.2.8.8.1
Jim Fulton
jim@zope.com
Wed, 29 May 2002 11:10:20 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/App/ZopePublication/Browser
In directory cvs.zope.org:/tmp/cvs-serv12181/lib/python/Zope/App/ZopePublication/Browser
Modified Files:
Tag: Zope3InWonderland-branch
Publication.py
Log Message:
- Added permission_id attribute to adapter and utility directives.
- Got rid of old getView, getResource, and getDefaultViewName.
Renamed getRequestView to getView (and so on).
Changed view interface to use context, rather than getContext.
Introduced notion of presentation types (e.g. IBrowserPresentation,
which is cleaner than IBrowserPublisher).
- Began converting to get/queryFoo, which is much nicer.
- Many formatting fixups.
=== Zope3/lib/python/Zope/App/ZopePublication/Browser/Publication.py 1.1.2.8 => 1.1.2.8.8.1 ===
from Zope.App.ZopePublication.HTTP.Publication import ZopeHTTPPublication
from Zope.Publisher.Browser.IBrowserPublisher import IBrowserPublisher
-from Zope.ComponentArchitecture import getRequestView
+from Zope.ComponentArchitecture import queryView
from Zope.Proxy.ContextWrapper import ContextWrapper
from Zope.Proxy.ProxyIntrospection import removeAllProxies
@@ -33,7 +33,7 @@
if IBrowserPublisher.isImplementedBy(removeAllProxies(ob)):
r = ob.browserDefault(request)
else:
- adapter = getRequestView(ob, '_traverse', request , None)
+ adapter = queryView(ob, '_traverse', request , None)
if adapter is not None:
r = adapter.browserDefault(request)
else: