Mercurial > p > roundup > code
diff roundup/xmlrpc.py @ 4256:712549bb7fe5
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
| author | Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net> |
|---|---|
| date | Fri, 02 Oct 2009 14:29:12 +0000 |
| parents | 3f6cadb98c2f |
| children | 7291130fad82 |
line wrap: on
line diff
--- a/roundup/xmlrpc.py Tue Sep 29 07:27:17 2009 +0000 +++ b/roundup/xmlrpc.py Fri Oct 02 14:29:12 2009 +0000 @@ -165,7 +165,12 @@ 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))
