Exemple #1
0
def ZTMGRSET():
    VistA = ConnectToMUMPS(LOGFILE)
    VistA.wait(PROMPT)
    VistA.write('D ^ZTMGRSET')
    while True:
        index = VistA.multiwait(['Should I continue?', 'System:'])
        if index == 0:
            VistA.write('YES')
            continue
        if index == 1:
            break
    # After choosing GTM (8), will see:
    #    'I will now rename a group of routines specific to your operating system
    VistA.write('8')
    # MANAGER's
    VistA.wait('NAME OF')
    VistA.write(TEST_VISTA_SETUP_UCI_NAME + "," + TEST_VISTA_SETUP_VOLUME_SET)
    # PRODUCTION SIGN ON
    VistA.wait('PRODUCTION')
    VistA.write(TEST_VISTA_SETUP_UCI_NAME + "," + TEST_VISTA_SETUP_VOLUME_SET)
    # VOLUME SET must match one used in PRODUCTION
    VistA.wait('NAME OF')
    VistA.write(TEST_VISTA_SETUP_VOLUME_SET)
    # Accept /tmp
    VistA.wait('The temp directory for the system')
    VistA.write('')
    # last step - Now to load routines common to all systems.
    VistA.wait('Want to rename the FileMan routines: No//')
    VistA.write('YES')
    VistA.wait(PROMPT, 200)
Exemple #2
0
VistA.write('K ^XUTL("XQ",$J)')
VistA.write('D ^XINDEX')
if VistA.type == 'cache':
  VistA.wait('No =>')
  VistA.write('No')
arglist = sys.argv[2].split(',')
for routine in arglist:
  VistA.wait('Routine:')
  VistA.write(routine)
VistA.wait('Routine:')
VistA.write('')
selectionList = ['Select BUILD NAME:',
                 'Select INSTALL NAME:',
                 'Select PACKAGE NAME:']
while True:
  index = VistA.multiwait(selectionList)
  VistA.write('')
  if index == len(selectionList) - 1:
    break
VistA.wait('warnings?')
VistA.write('No')
VistA.wait('routines?')
VistA.write('NO')
VistA.wait('DEVICE:')
VistA.write(';;9999')
if sys.platform == 'win32':
  VistA.wait('Right Margin:')
  VistA.write('')
VistA.write('')
VistA.wait('continue:',60)
VistA.write('')
Exemple #3
0
VistA.write('K ^XUTL("XQ",$J)')
VistA.write('D ^XINDEX')
if VistA.type == 'cache':
    VistA.wait('No =>')
    VistA.write('No')
arglist = sys.argv[2].split(',')
for routine in arglist:
    VistA.wait('Routine:')
    VistA.write(routine)
VistA.wait('Routine:')
VistA.write('')
selectionList = [
    'Select BUILD NAME:', 'Select INSTALL NAME:', 'Select PACKAGE NAME:'
]
while True:
    index = VistA.multiwait(selectionList)
    VistA.write('')
    if index == len(selectionList) - 1:
        break
VistA.wait('warnings?')
VistA.write('No')
VistA.wait('routines?')
VistA.write('NO')
VistA.wait('DEVICE:')
VistA.write(';;9999')
if sys.platform == 'win32':
    VistA.wait('Right Margin:')
    VistA.write('')
VistA.write('')
VistA.wait('continue:', 60)
VistA.write('')