本文整理汇总了Python中VistAMenuUtil.VistAMenuUtil.gotoSystemMenu方法的典型用法代码示例。如果您正苦于以下问题:Python VistAMenuUtil.gotoSystemMenu方法的具体用法?Python VistAMenuUtil.gotoSystemMenu怎么用?Python VistAMenuUtil.gotoSystemMenu使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类VistAMenuUtil.VistAMenuUtil
的用法示例。
在下文中一共展示了VistAMenuUtil.gotoSystemMenu方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: preInstallationWork
# 需要导入模块: from VistAMenuUtil import VistAMenuUtil [as 别名]
# 或者: from VistAMenuUtil.VistAMenuUtil import gotoSystemMenu [as 别名]
def preInstallationWork(self, vistATestClient, **kargs):
""" ignore the multi-build patch for now """
if self._multiBuildList is not None:
return
globalFiles = self.__getGlobalFileList__()
if globalFiles is None or len(globalFiles) == 0:
return
globalImport = VistAGlobalImport()
for glbFile in globalFiles:
logger.info("Import global file %s" % (glbFile))
fileSize = os.path.getsize(glbFile)
importTimeout = DEFAULT_GLOBAL_IMPORT_TIMEOUT
importTimeout += int(fileSize/GLOBAL_IMPORT_BYTE_PER_SEC)
globalImport.importGlobal(vistATestClient, glbFile, timeout=importTimeout)
""" Requires the installer account to have the ZTMQ security key"""
menuUtil = VistAMenuUtil(duz=17)
menuUtil.gotoSystemMenu(vistAClient)
connection.send("Allocation of Security\r")
connection.expect("Allocate key")
connection.send("ZTMQ\r\r")
connection.expect("Holder of key")
connection.send(" \r\r")
connection.expect("Do you wish to proceed")
connection.send("Y\r")
示例2: getPersonNameByDuz
# 需要导入模块: from VistAMenuUtil import VistAMenuUtil [as 别名]
# 或者: from VistAMenuUtil.VistAMenuUtil import gotoSystemMenu [as 别名]
def getPersonNameByDuz(inputDuz, vistAClient):
logger.info ("inputDuz is %s" % inputDuz)
""" user Kernel User API """
connection = vistAClient.getConnection()
menuUtil = VistAMenuUtil(duz=1)
menuUtil.gotoSystemMenu(vistAClient)
connection.send('Prog\r')
connection.expect('Select Programmer Options')
connection.send('^\r')
menuUtil.exitSystemMenu(vistAClient)
vistAClient.waitForPrompt()
connection.send('W $$NAME^XUSER(%s)\r' % inputDuz)
connection.expect('\)') # get rid of the echo
vistAClient.waitForPrompt()
result = connection.before.strip(' \r\n')
connection.send('\r')
return result