Ejemplo n.º 1
0
def initVaultConnection(vaultAddress, username, passowrd):
    if (vaultAddress == 'http://vault.live.altium.com'):
        loginURL = 'http://ids.live.altium.com/?cls=soap'
        serviceURL = 'http://vault.live.altium.com/?cls=soap'
    else:
        loginURL = vaultAddress + "/ids/?cls=soap"
        serviceURL = vaultAddress + "/vault/?cls=soap"

    idsClient = VaultSDK.IDSClient(loginURL)
    loginResult = idsClient.Login(username, passowrd, False)
    vaultClient = VaultSDK.VaultClient(serviceURL)
    vaultClient.Login(loginResult.SessionId)

    return vaultClient
Ejemplo n.º 2
0
def initVaultConnection(vaultAddress, username, passowrd):
    if (vaultAddress == 'http://vault.live.altium.com'):
        loginURL = 'http://ids.live.altium.com/?cls=soap'
        serviceURL = 'http://vault.live.altium.com/?cls=soap'
    else:
        loginURL = vaultAddress + "/ids/?cls=soap"
        serviceURL = vaultAddress + "/vault/?cls=soap"

    idsClient = VaultSDK.IDSClient(loginURL)
    loginResult = idsClient.Login(username, passowrd, False,Altium.Sdk.DxpAppServer.IDSServiceProxyLoginOptions.KillExistingSession)
    vaultClient = VaultSDK.VaultClient(serviceURL)
    vaultClient.Login(loginResult.SessionId)

    return vaultClient