Changeset 103 for pykoticon/trunk/tests
- Timestamp:
- 01/30/06 19:27:57 (19 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykoticon/trunk/tests/test.py
r101 r103 35 35 jobtitle = os.environ.get("PYKOTATITLE", "Unknown") 36 36 jobsize = os.environ.get("PYKOTAPRECOMPUTEDJOBSIZE", "Unknown") 37 37 billingcode = os.environ.get("PYKOTAJOBBILLING", "") 38 38 if len(arguments) < 3 : 39 39 message = """Hello %(username)s, … … 51 51 server = xmlrpclib.ServerProxy("http://%s:%s" % (arguments[0], arguments[1])) 52 52 result = server.showDialog(message, yesno) 53 """ 54 result = server.askDatas(["Username", "Password", "Billing code"], \ 55 ["username", "password", "billingcode"], \ 56 {"username": username, \ 57 "password": "******", \ 58 "billingcode" : billingcode}) 59 """ 53 60 print result # printing OK is safe. 54 61