def moveItems(itemTarFolderDict, vaultClient): moveCollection = VaultSDK.VaultMoveItemList() for itemGUID in itemTarFolderDict: move = VaultSDK.VaultMoveItem(itemGUID, itemTarFolderDict[itemGUID]) moveCollection.Add(move) vaultClient.MoveItems(moveCollection)
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
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
def moveItem(itemGUID, folderGUID, vaultClient): move = VaultSDK.VaultMoveItem(itemGUID, folderGUID) vaultClient.MoveItem(move)