I'm trying to use an XMLRPC connection but I don't know which database to connect to. I can log in to the system, but it doesn't show me which db it is using. How can I find out?
user = 'admin'
password = 'PASSWORD'
host = 'localhost:8069'
db = 'test' # How do I find out what database to connect to?
sock = xmlrpclib.ServerProxy('http://%s/xmlrpc/common' % host)
uid = sock.login(db, user, password)
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 7/23/14, 6:03 AM|
|Seen: 862 times|
|Last updated: 3/16/15, 8:10 AM|