[Zope] Re:Error in XML-RPC

toman toman@marge.cyber-dyne.com
Tue, 14 Jan 2003 09:21:51 -0800


zope wrote:
> Hi Michael and Dieter,
>  
> I am thankful for youe timely help>I have been trying different optionas 
> and have still nto suceeded in running an XML-RPC example.Could you 
> please guide me here as to how to go about it.. 
>  
> I am trying the example from
>  
> http://www.xml.com/pub/a/2000/01/xmlrpc/index.html?page=2
>  
> for testing XML-RPC using python..
>  
> My system configuration is:
> Mandrake-8.0
> Postgres7.2
> Zope -2.5.1
> Python-2.1.1
>  
> I have tried this code after installing the xmlrpclib-1.0.1 directory in 
> the Python-2.1.1/Lib folder
> Hence on importing xmlrpclib  it does not throw any error.
> Now the next step detailed is
>  
>  >>>d=xmlrpclib.Server('http://192.168.10.4:8080/index_html',
> ... xmlrpclib.BasicAuthTransport('admin','admin'))
>  
> This throws the error :
>  
> Traceback (most recent call last):
>   File "<stdin>", line 2, in ?
> AttributeError: 'xmlrpclib' module has no attribute 'BasicAuthTransport'
> Could you plese tell me where I have gone wrong
> I am not being able to get it running properly.
> There is a setup.py file in xmlrpclib-1.0.1
> Should I be doing any setup ??
>  
> Please help me out here
> I would like to thank all for helping me .
>  
> Best Regards
> John Kunchandy


As far as I know xmlrpclib doesn't have BasicAuthTransport in it, it's a 
separate file. I think I may have grabbed it off of ZopeLabs.

						J. Toman