[Patches] [ python-Patches-473586 ] SimpleXMLRPCServer - fixes and CGI

noreply@sourceforge.net noreply@sourceforge.net
Tue, 23 Oct 2001 11:02:03 -0700


Patches item #473586, was opened at 2001-10-22 00:26
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=473586&group_id=5470

Category: Library (Lib)
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Brian Quinlan (bquinlan)
Assigned to: Nobody/Anonymous (nobody)
Summary: SimpleXMLRPCServer - fixes and CGI

Initial Comment:
Changes:

o treats xmlrpclib.Fault's correctly (no longer 
absorbes them as generic exceptions)
o changed failed marshal to generate a useful Fault 
instead of an internal server error
o adds a new class to make writing XML-RPC functions 
embedded in other servers, using CGI, easier (tested 
with APACHE)
o to support the above, added a new dispatch helper 
class SimpleXMLRPCDispatcher


----------------------------------------------------------------------

>Comment By: Brian Quinlan (bquinlan)
Date: 2001-10-23 11:02

Message:
Logged In: YES 
user_id=108973

- a few extra comments
- moved a xmlrpclib.loads() inside an exception handler so 
an XML-RPC fault is generated for malformed requests


----------------------------------------------------------------------

Comment By: Brian Quinlan (bquinlan)
Date: 2001-10-22 11:59

Message:
Logged In: YES 
user_id=108973

The advantage of the entire patch being accepted before 2.2 
is that there is an API change and, once 2.2 is release, we 
will probably have to make a bit of an attempt to maintain 
backwards compatibility.

If this patch is too high-risk for 2.2 then I can certainly 
design a bug-fix patch for 2.2 and submit a new patch for 
2.3 (that is API compatible with 2.2).

----------------------------------------------------------------------

Comment By: Martin v. Löwis (loewis)
Date: 2001-10-22 11:43

Message:
Logged In: YES 
user_id=21627

Brian, please note that Python 2.2b1 has been released, so 
no new features are acceptable until 2.2. So unless 
Fredrik Lundh wants to accept your entire patch, I think 
it has little chance to get integrated for the next few 
months.
If you want pieces of it accepted, I'd recommend to split 
it into bug fixes and new features; bug fixes are still 
acceptable.


----------------------------------------------------------------------

Comment By: Brian Quinlan (bquinlan)
Date: 2001-10-22 11:27

Message:
Logged In: YES 
user_id=108973

I just can't stop mucking with it. This time there are only 
documentation changes. I should also have pointed out that 
this patch changes the mechanism for overriding the 
dispatch mechanism: you used to subclass the request 
handler, now you subclass the server. I believe that this 
change is correct because the server actually has the 
required state information to do the dispatching.

----------------------------------------------------------------------

Comment By: Brian Quinlan (bquinlan)
Date: 2001-10-22 00:35

Message:
Logged In: YES 
user_id=108973

Changed a name to fit other naming conventions

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=473586&group_id=5470