comparison 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
comparison
equal deleted inserted replaced
4255:88af08f8666f 4256:712549bb7fe5
163 It expects user authentication to be done.""" 163 It expects user authentication to be done."""
164 164
165 def __init__(self, db, actions, translator, 165 def __init__(self, db, actions, translator,
166 allow_none=False, encoding=None): 166 allow_none=False, encoding=None):
167 167
168 SimpleXMLRPCDispatcher.__init__(self, allow_none, encoding) 168 try:
169 # python2.5 and beyond
170 SimpleXMLRPCDispatcher.__init__(self, allow_none, encoding)
171 except TypeError:
172 # python2.4
173 SimpleXMLRPCDispatcher.__init__(self)
169 self.register_instance(RoundupInstance(db, actions, translator)) 174 self.register_instance(RoundupInstance(db, actions, translator))
170 175
171 176
172 def dispatch(self, input): 177 def dispatch(self, input):
173 return self._marshaled_dispatch(input) 178 return self._marshaled_dispatch(input)

Roundup Issue Tracker: http://roundup-tracker.org/