Ejemplo n.º 1
0
def login():
    global td
    for project in projects:
        # Do the actual login
        td = CreateObject("TDApiOle80.TDConnection")
        td.InitConnectionEx(qcServer)
        td.Login(qcUser, qcPassword)
        td.Connect(qcDomain, project)
        if td.Connected:
            print "System: Logged in to " + project
        else:
            print "Connect failed to " + project