コード例 #1
0
ファイル: cmpLib_ipy.py プロジェクト: ylyxf/Scripts
def moveItems(itemTarFolderDict, vaultClient):
    moveCollection = VaultSDK.VaultMoveItemList()
    for itemGUID in itemTarFolderDict:
        move = VaultSDK.VaultMoveItem(itemGUID, itemTarFolderDict[itemGUID])
        moveCollection.Add(move)

    vaultClient.MoveItems(moveCollection)
コード例 #2
0
ファイル: cmpLib_ipy.py プロジェクト: ylyxf/Scripts
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
コード例 #3
0
ファイル: cmpLib_ipy - Backup.py プロジェクト: ylyxf/Scripts
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
コード例 #4
0
ファイル: cmpLib_ipy.py プロジェクト: ylyxf/Scripts
def moveItem(itemGUID, folderGUID, vaultClient):
    move = VaultSDK.VaultMoveItem(itemGUID, folderGUID)
    vaultClient.MoveItem(move)