32 | | server = xmlrpclib.ServerProxy("http://%s:%s" % (arguments[0], arguments[1])) |
33 | | server.nop() |
34 | | print "Result : %s" % server.openConfirmDialog("HP2100", "jerome", "345", "this is the title", 5) |
35 | | server.nop() |
36 | | time.sleep(10) |
37 | | server.quitApplication() |
38 | | |
| 32 | printername = os.environ.get("PYKOTAPRINTERNAME") |
| 33 | username = os.environ.get("PYKOTAUSERNAME") |
| 34 | jobid = os.environ.get("PYKOTAJOBID") |
| 35 | jobtitle = os.environ.get("PYKOTATITLE") |
| 36 | jobsize = os.environ.get("PYKOTAPRECOMPUTEDJOBSIZE") |
| 37 | try : |
| 38 | server = xmlrpclib.ServerProxy("http://%s:%s" % (arguments[0], arguments[1])) |
| 39 | result = server.openConfirmDialog(printername, username, jobid, jobtitle, jobsize) |
| 40 | except : |
| 41 | sys.stderr.write("An error occured !\n") |
| 42 | if result != "OK" : |
| 43 | print result |
| 44 | |