I am currently working on a project in which I am
required to send some data from OpenOffice.org v2.0.(OOo)
I have placed buttons on the spreadsheet, and a python
script is to be invoked when the button is clicked.
I am required to send the data in the spreadsheet to an
app server, hence I am using XML-RPC to get this job done.
The version of XML-RPC(xmlrpclib.py) I'm using is
v1.36.2.1,
The app server requires the connection to be
authenticated, whereas the current xmlrpclib.py doesnot
come with support for sending requests with basic
authentication.
In order to extend the capabilities of the xmlrpclib.py
with http authentication, I have written code that
provides necessary basic authentication.(class
BasicAuthTransport in the attached file
Project_saveFromOOoCalcAction.py) The actual connection
and authentication details have been replaced for
security reasons.
When the button on the OOo spreadsheet is clicked, the
script throws the following error.
com.sun.star.uno.RuntimeExceptionexceptions.TypeError:
request() got an unexpected keyword argument 'verbose',
traceback follows
File "usr/lib/python2.4/xmlrpclib.py", in line 1096, in
__call__
return self.__send(self.__name,args)
File "usr/lib/python2.4/xmlrpclib.py", in line 1383, in
__request
verbose=self.__verbose
When I comment out the line 1383 of the above file,
everything runs smoothly, this is a very trivial
solution though,as this would require me to comment out
the line 1383 of the above file n all the client
machines in which the script has to executed.
Hence I'm looking for a more viable solution. The files
are attached along.
Any help or advice in this regard shall be welcome.
regards,
-VB
|