[Zope-Checkins] CVS: Zope3/lib/python/Zope/Publisher/XMLRPC - XMLRPCRequest.py:1.1.2.2.2.1

Shane Hathaway shane@cvs.zope.org
Thu, 11 Apr 2002 12:34:16 -0400


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

Modified Files:
      Tag: Zope3-Server-Branch
	XMLRPCRequest.py 
Log Message:
- Fixed status code handling.  For HTTP, default to a special 599, which
means nothing set the status code.  Added an internalError() call, which
should tell the client that the server failed to handle an exception.

- Fixed the retry mechanism.  Because the status code check was disabled
in testHTTPServer, no one knew that retry wasn't working at all.
(tsk, tsk!)  Had to add another argument to request constructors.


=== Zope3/lib/python/Zope/Publisher/XMLRPC/XMLRPCRequest.py 1.1.2.2 => 1.1.2.2.2.1 ===
 class TestRequest(XMLRPCRequest):
 
-    def __init__(self, body_instream=None, outstream=None, environ=None, **kw):
+    def __init__(self, body_instream=None, outstream=None, environ=None,
+                 response=None, **kw):
 
         _testEnv =  {
             'SERVER_URL':         'http://127.0.0.1',
@@ -78,5 +79,6 @@
         if outstream is None:
             outstream = StringIO()
 
-        super(TestRequest, self).__init__(body_instream, outstream, _testEnv)
-    
+        super(TestRequest, self).__init__(
+            body_instream, outstream, _testEnv, response)
+