Patches item #1618485, was opened at 2006-12-19 01:01 Message generated for change (Comment added) made by therve You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1618485&group_id=5470
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Library (Lib) Group: Python 2.4 Status: Open Resolution: None Priority: 5 Private: No Submitted By: Maximiliano Curia (maxy) Assigned to: Nobody/Anonymous (nobody) Summary: add None values in SimpleXMLRPCServer Initial Comment: Using SimpleXMLRPCServer I've been having some problems when trying to use "None" values. Apparently it uses a "dumps" function from xmlrpclib to generate the response. This function does support "None" values, but needs an extra parameter to allow them. The patch attached adds a new parameter (allow_none) to the constructor of SimpleXMLRPCServer, that when set is passed to the xmlrpclib.dumps call. This fixes the problem in a consistent way with the usage of xmlrpclib. It might be a better solution to support "None" values by default in SimpleXMLRPCServer and xmlrpclib. The patch is for python 2.4, but should probably be ported to 2.5 and 2.6. Thanks. ---------------------------------------------------------------------- Comment By: TH (therve) Date: 2007-03-06 13:53 Message: Logged In: YES user_id=1038797 Originator: NO As it's a new feature, it can probably only be in 2.6. Otherwise, that seems good, are you willing to write tests for this ? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1618485&group_id=5470 _______________________________________________ Patches mailing list [email protected] http://mail.python.org/mailman/listinfo/patches
