[ python-Bugs-1446690 ] bug with xmlrpclib

SourceForge.net noreply at sourceforge.net
Fri Mar 17 11:59:46 CET 2006


Bugs item #1446690, was opened at 2006-03-09 19:22
Message generated for change (Comment added) made by gbrandl
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1446690&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: XML
Group: Python 2.3
>Status: Closed
>Resolution: Works For Me
Priority: 9
Submitted By: varun bhansaly (varun_bhansaly)
Assigned to: Nobody/Anonymous (nobody)
Summary: bug with xmlrpclib

Initial Comment:
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

----------------------------------------------------------------------

>Comment By: Georg Brandl (gbrandl)
Date: 2006-03-17 10:59

Message:
Logged In: YES 
user_id=849994

OP indicated that the problem is solved.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1446690&group_id=5470


More information about the Python-bugs-list mailing list