[Zope-Checkins] CVS: Zope3/lib/python/Zope/Publisher/HTTP - BrowserPayload.py:1.1.2.4 HTTPRequest.py:1.1.2.8 IPayload.py:1.1.2.3

Shane Hathaway shane@digicool.com
Mon, 19 Nov 2001 15:56:13 -0500


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

Modified Files:
      Tag: Zope-3x-branch
	BrowserPayload.py HTTPRequest.py IPayload.py 
Log Message:
Added getPublication() method to request objects and IRequestPayload.
This fixed a name error and is probably a good method to have anyway.


=== Zope3/lib/python/Zope/Publisher/HTTP/BrowserPayload.py 1.1.2.3 => 1.1.2.4 ===
             request.setRequestDefault(meth)
 
+
+    def getPublication(self, request):
         return self.publication
 
 


=== Zope3/lib/python/Zope/Publisher/HTTP/HTTPRequest.py 1.1.2.7 => 1.1.2.8 ===
         return self.payload.processInputs(self)
 
+    def getPublication(self):
+        return self.payload.getPublication(self)
+
     def get_header(self, name, default=None):
         """Return the named HTTP header, or an optional default
         argument or None if the header is not found. Note that


=== Zope3/lib/python/Zope/Publisher/HTTP/IPayload.py 1.1.2.2 => 1.1.2.3 ===
     def processInputs(request):
         """
-        Processes request inputs, returning a Publication object.
+        Processes request inputs.
+        """
+
+    def getPublication(request):
+        """
+        Returns the publication object.
         """
 
     def debugInfo(request):