Show
Ignore:
Timestamp:
01/30/06 19:27:57 (19 years ago)
Author:
jerome
Message:

Generic dialog sort of works. Some cleaning and result data extraction
still need to be done.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykoticon/trunk/tests/test.py

    r101 r103  
    3535    jobtitle = os.environ.get("PYKOTATITLE", "Unknown") 
    3636    jobsize = os.environ.get("PYKOTAPRECOMPUTEDJOBSIZE", "Unknown") 
    37      
     37    billingcode = os.environ.get("PYKOTAJOBBILLING", "") 
    3838    if len(arguments) < 3 : 
    3939        message = """Hello %(username)s, 
     
    5151    server = xmlrpclib.ServerProxy("http://%s:%s" % (arguments[0], arguments[1])) 
    5252    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    """                           
    5360    print result # printing OK is safe. 
    5461