[Zope-Checkins] CVS: Zope3/lib/python/Zope/Publisher - IPublication.py:1.1.2.2

Shane Hathaway shane@digicool.com
Thu, 15 Nov 2001 10:12:08 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/Publisher
In directory cvs.zope.org:/tmp/cvs-serv32356

Modified Files:
      Tag: Zope-3x-branch
	IPublication.py 
Log Message:
Removed checkAuthorization() since traverseName() can do it.


=== Zope3/lib/python/Zope/Publisher/IPublication.py 1.1.2.1 => 1.1.2.2 ===
         """
 
-    def invokeHooks(request, object):
+    def invokeHooks(request, ob):
         """
         Invokes any traversal hooks associated with the object.
         """
 
-    def traverseName(request, ob, name):
+    def traverseName(request, ob, name, check_auth=1):
         """
-        Traverses to the next object.
-        """
-
-    def checkAuthorization(request, ob, name, subob):
-        """
-        Performs idenitification, authentication, and authorization.
-        Should call request.setAuthenticatedUser().
+        Traverses to the next object.  If check_auth is set,
+        performs idenitification, authentication, and authorization,
+        and may call request.setAuthenticatedUser().
+        Returns the subobject.
         """
 
     def getDefault(request, ob):
@@ -53,7 +50,10 @@
 
     def publish(request, ob):
         """
-        Publishes the object, usually by calling it.
+        Publishes the object, returning the result as a string.
+        For GET/POST this means calling it, but for other methods
+        (including those of WebDAV and FTP) this means invoking
+        a method of an adapter.
         """
 
     def postPublish(request):