I found the problem, it's to do with WSGI - it needs to be configured
to pass on the authentication data.

In the configuration file for the module, somewhere like /etc/apache2/
mods-enabled/wsgi.conf you need to add a line:

WSGIPassAuthorization On

and reload apache.

Cheers,
Robin

On Jun 14, 6:30 am, Abhishek Gupta <abhishekgupta.i...@gmail.com>
wrote:
> I have the following functions defined in test.py file
>
> @auth.requires_login()
> def call():
>     return service()
>
> @service.xmlrpc
> def time():
>     import time
>     return time.ctime()
>
> and following in my db.py file
> auth.settings.allow_basic_
> login = True  #for CLI access
>
> When I execute the following commands in python shell :
>
> server = ServerProxy( '
> https://username:passw...@10.20.254.39/cloud_computing/test/call/xmlrpc' )
> server.time()
>
> I get the following error
>
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File "/usr/lib/python2.6/xmlrpclib.py", line 1199, in __call__
>     return self.__send(self.__name, args)
>   File "/usr/lib/python2.6/xmlrpclib.py", line 1489, in __request
>     verbose=self.__verbose
>   File "/usr/lib/python2.6/xmlrpclib.py", line 1243, in request
>     headers
> xmlrpclib.ProtocolError: <ProtocolError for
> username:passw...@10.20.254.39/cloud_computing/test/call/xmlrpc: *303 SEE
> OTHER*>
>
> Am, I doing something wrong somewhere?
>
> --
> Abhishekhttp://abhishekgupta92.info

Reply via email to