[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/ZopePublication/HTTP - HTTPPublicationTraverse.py:1.1.4.5.4.1
Jim Fulton
jim@zope.com
Wed, 29 May 2002 11:10:20 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/App/ZopePublication/HTTP
In directory cvs.zope.org:/tmp/cvs-serv12181/lib/python/Zope/App/ZopePublication/HTTP
Modified Files:
Tag: Zope3InWonderland-branch
HTTPPublicationTraverse.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/HTTP/HTTPPublicationTraverse.py 1.1.4.5 => 1.1.4.5.4.1 ===
from Zope.Publisher.Browser.IBrowserPublisher import IBrowserPublisher
-from Zope.ComponentArchitecture import getRequestView
+from Zope.ComponentArchitecture import getView
from Zope.Security.SecurityManagement import getSecurityManager
from Zope.Publisher.Exceptions import NotFound
from types import StringTypes
@@ -104,7 +104,7 @@
return ContextWrapper(ob2, ob, name=name)
def _traverseview(self, request, ob, name):
- r = getRequestView(ob, name, request, self)
+ r = getView(ob, name, request, self)
if r is self:
raise NotFound(ob, name, request)
return r