From c5cb3df7029ea81f8333f310021c3815e95b2db6 Mon Sep 17 00:00:00 2001 From: schlatterbeck Date: Fri, 2 Oct 2009 14:29:12 +0000 Subject: [PATCH] Small fix for CGI-handling of XMLRPC requests for python2.4, this worked only for 2.5 and beyond due to a change in the xmlrpc interface in python git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/roundup/trunk@4360 57a73879-2fb5-44c3-a270-3262357dd7e2 --- CHANGES.txt | 3 +++ roundup/xmlrpc.py | 7 ++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGES.txt b/CHANGES.txt index 7d0dfbe..81f08fb 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -17,6 +17,9 @@ Fixes: We now issue a warning during export if the limit is too small and use the csv_field_size configuration during import to set the limit for the csv module. +- Small fix for CGI-handling of XMLRPC requests for python2.4, this + worked only for 2.5 and beyond due to a change in the xmlrpc interface + in python 2009-08-10 1.4.9 (r4346) diff --git a/roundup/xmlrpc.py b/roundup/xmlrpc.py index 4e0d19a..86c8f99 100644 --- a/roundup/xmlrpc.py +++ b/roundup/xmlrpc.py @@ -165,7 +165,12 @@ class RoundupDispatcher(SimpleXMLRPCDispatcher): def __init__(self, db, actions, translator, allow_none=False, encoding=None): - SimpleXMLRPCDispatcher.__init__(self, allow_none, encoding) + try: + # python2.5 and beyond + SimpleXMLRPCDispatcher.__init__(self, allow_none, encoding) + except TypeError: + # python2.4 + SimpleXMLRPCDispatcher.__init__(self) self.register_instance(RoundupInstance(db, actions, translator)) -- 2.30.2