[Zope-Moz] another xml rpc problem

Chris McDonough chrism@digicool.com
Wed, 19 Apr 2000 13:47:09 -0400


Are you importing the base64 module?  e.g.

from base64 import encodestring


> -----Original Message-----
> From: Qingjuan Guan [mailto:qingjuan@hotmail.com]
> Sent: Wednesday, April 19, 2000 1:05 PM
> To: Zope-Mozilla@zope.org
> Cc: amos@digicool.com
> Subject: [Zope-Moz] another xml rpc problem
> 
> 
> Hi all,
> 
> I am trying to setup zope as a xmlrpc server and use python 
> to connect to 
> the server and make the changes.  I follow the exmaple on the 
> xml.com by 
> Amos.  There is one line in BasicAuthTransport doesn't work for me:
>    h.putheader("AUTHORIZATION", "Basic %s" % string.replace(
>             encodestring("%s:%s" % (self.username, self.password))
>             , "\012", "")
> the python compiler will not recogernize the encodestring call.  Does 
> anybody have an idea of what is wrong here?
> 
> Thanks!
> ______________________________________________________
> Get Your Private, Free Email at http://www.hotmail.com
> 
> 
> _______________________________________________
> Zope-Mozilla maillist  -  Zope-Mozilla@zope.org
> http://lists.zope.org/mailman/listinfo/zope-mozilla
>