On Jul 16, 4:38 pm, David Watson <[email protected]> wrote:
> What is this login_bare that you speak of? The page that you
> reference, which I had previously read, makes no mention of it, and
> google seems to know nothing of it.
It's defined in gluon/tools.py
> I assume your example is server-side
Yes
>, if so, where do the username and password come from?
Passed as arguments to the function:
@service.xmlrpc
def myfunction(username, password):
...
> And are we talking about the basic auth client encoding that I referenced?
I use some thing like (http://web2py.com/examples/default/
tools#services):
from xmlrpclib import ServerProxy
server = ServerProxy('http://..../app/default/call/xmlrpc')
print server.myfunction('user', 'password')
F
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---