本文整理汇总了Python中VistAMenuUtil.VistAMenuUtil.gotoFileManEditEnterEntryMenu方法的典型用法代码示例。如果您正苦于以下问题:Python VistAMenuUtil.gotoFileManEditEnterEntryMenu方法的具体用法?Python VistAMenuUtil.gotoFileManEditEnterEntryMenu怎么用?Python VistAMenuUtil.gotoFileManEditEnterEntryMenu使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类VistAMenuUtil.VistAMenuUtil
的用法示例。
在下文中一共展示了VistAMenuUtil.gotoFileManEditEnterEntryMenu方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: addPackagePatchHistory
# 需要导入模块: from VistAMenuUtil import VistAMenuUtil [as 别名]
# 或者: from VistAMenuUtil.VistAMenuUtil import gotoFileManEditEnterEntryMenu [as 别名]
def addPackagePatchHistory(packageName, version, seqNo, patchNo, vistAClient, inputDuz):
logger.info("Adding %s, %s, %s, %s to Package Patch history" % (packageName, version, seqNo, patchNo))
connection = vistAClient.getConnection()
menuUtil = VistAMenuUtil(duz=1)
menuUtil.gotoFileManEditEnterEntryMenu(vistAClient)
connection.send("9.4\r") # package file
connection.expect("EDIT WHICH FIELD: ")
connection.send("VERSION\r")
connection.expect("EDIT WHICH VERSION SUB-FIELD: ")
connection.send("PATCH APPLICATION HISTORY\r")
connection.expect("EDIT WHICH PATCH APPLICATION HISTORY SUB-FIELD: ")
connection.send("ALL\r")
connection.expect("THEN EDIT VERSION SUB-FIELD: ")
connection.send("\r")
connection.expect("THEN EDIT FIELD: ")
connection.send("\r")
connection.expect("Select PACKAGE NAME: ")
connection.send("%s\r" % packageName)
connection.expect("Select VERSION: %s//" % version)
connection.send("\r")
connection.expect("Select PATCH APPLICATION HISTORY: ")
connection.send("%s SEQ #%s\r" % (patchNo, seqNo))
connection.expect("Are you adding .*\? No//")
connection.send("YES\r")
connection.expect("DATE APPLIED: ")
connection.send("T\r")
connection.expect("APPLIED BY: ")
connection.send("`%s\r" % inputDuz)
connection.expect("DESCRIPTION:")
connection.send("\r")
connection.expect("Select PATCH APPLICATION HISTORY: ")
connection.send("\r")
connection.expect("Select PACKAGE NAME: ")
connection.send("\r")
menuUtil.exitFileManMenu(vistAClient)
示例2: inhibitLogons
# 需要导入模块: from VistAMenuUtil import VistAMenuUtil [as 别名]
# 或者: from VistAMenuUtil.VistAMenuUtil import gotoFileManEditEnterEntryMenu [as 别名]
def inhibitLogons(testClient, flag=True):
from VistAMenuUtil import VistAMenuUtil
from VistATaskmanUtil import getBoxVolPair
volumeSet = getBoxVolPair(testClient).split(':')[0]
menuUtil = VistAMenuUtil(duz=1)
menuUtil.gotoFileManEditEnterEntryMenu(testClient)
conn = testClient.getConnection()
conn.send('14.5\r') # 14.5 is the VOLUME SET File
conn.expect('EDIT WHICH FIELD: ')
conn.send('1\r') # field Inhibit Logons?
conn.expect('THEN EDIT FIELD: ')
conn.send('\r')
conn.expect('Select VOLUME SET: ')
conn.send('%s\r' % volumeSet)
conn.expect('INHIBIT LOGONS\?: ')
if flag:
conn.send('YES\r')
else:
conn.send('NO\r')
conn.expect('Select VOLUME SET: ')
conn.send('\r')
menuUtil.exitFileManMenu(testClient)