Provides a getInfo method for the rpcSource (or
xmlrpc.source in Python) class.
This allows you to get at the dictionary that holds
header info from xmlrpc method calls in Python.
e.g.
# Handle authentication
def auth(servp, srcp, uri, call, args):
info=srcp.getInfo()
authstr=decodestring(string.split(info['Authorization'],'
')[1])
cindex=string.find(authstr,':')
user=authstr[:cindex]
pw=authstr[cindex+1:]
(my server has a two-step authentication mechanism, and
the normal authentication callback is not sufficient to
handle that.)
Conrad
GetInfo method for xmlrpc.source patch