summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 02bb637)
raw | patch | inline | side by side (parent: 02bb637)
author | schlatterbeck <schlatterbeck@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Fri, 2 Oct 2009 14:29:12 +0000 (14:29 +0000) | ||
committer | schlatterbeck <schlatterbeck@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Fri, 2 Oct 2009 14:29:12 +0000 (14:29 +0000) |
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
python
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/roundup/trunk@4360 57a73879-2fb5-44c3-a270-3262357dd7e2
CHANGES.txt | patch | blob | history | |
roundup/xmlrpc.py | patch | blob | history |
diff --git a/CHANGES.txt b/CHANGES.txt
index 7d0dfbe61b9abfe7ce3570161886b5f7820dff6d..81f08fb5aa4e71ac19f117110c4ba9e9c8120440 100644 (file)
--- a/CHANGES.txt
+++ b/CHANGES.txt
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 4e0d19ad38be7f42ef49c0e405aa8d1a48fe6e64..86c8f992b207e443bacbd101311b16c3b209bae2 100644 (file)
--- a/roundup/xmlrpc.py
+++ b/roundup/xmlrpc.py
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))