This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: bug with xmlrpclib
Type: Stage:
Components: XML Versions: Python 2.3
process
Status: closed Resolution: works for me
Dependencies: Superseder:
Assigned To: Nosy List: georg.brandl, varun_bhansaly
Priority: critical Keywords:

Created on 2006-03-09 19:22 by varun_bhansaly, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg27727 - (view) Author: varun bhansaly (varun_bhansaly) Date: 2006-03-09 19:22
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
msg27728 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2006-03-17 10:59
Logged In: YES 
user_id=849994

OP indicated that the problem is solved.
History
Date User Action Args
2022-04-11 14:56:15adminsetgithub: 43005
2006-03-09 19:22:42varun_bhansalycreate