Changeset 107 for pykoticon/trunk/tests
- Timestamp:
- 02/02/06 16:13:01 (19 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykoticon/trunk/tests/test.py
r106 r107 50 50 51 51 server = xmlrpclib.ServerProxy("http://%s:%s" % (arguments[0], arguments[1])) 52 #result = server.showDialog( message, yesno)52 #result = server.showDialog(xmlrpclib.Binary(message), yesno) 53 53 #""" 54 result = server.askDatas([ "Username", "Password", "Billing code"], \54 result = server.askDatas([xmlrpclib.Binary(v) for v in ["Username", "Password", "Billing code"]], \ 55 55 ["username", "password", "billingcode"], \ 56 {"username": username, \57 "password": "cccccc", \58 "billingcode" : billingcode})56 {"username": xmlrpclib.Binary(username), \ 57 "password": xmlrpclib.Binary(""), \ 58 "billingcode" : xmlrpclib.Binary(billingcode)}) 59 59 #""" 60 60 #server.quitApplication() 61 61 if result["isValid"] : 62 print result # printing OK is safe.62 print "\n".join(["%s => '%s'" % (k, v.data) for (k, v) in result.items() if k != "isValid"]) 63 63 else : 64 64 print "the end user closed the dialog box !"