Exemplo n.º 1
0
def createCrossReferenceLogArgumentParser():
    callLogArgParser = createCallGraphLogAugumentParser()
    dataDictLogArgParser = createDataDictionaryAugumentParser()
    filemanDBJsonArgParser = createFileManDBFileAugumentParser()
    parser = argparse.ArgumentParser(add_help=False,
                                     parents=[callLogArgParser,
                                              dataDictLogArgParser,
                                              filemanDBJsonArgParser])
    return parser
Exemplo n.º 2
0
def createCrossReferenceLogArgumentParser():
    initCrossRefParser = createInitialCrossRefGenArgParser()
    callLogArgParser = createCallGraphLogAugumentParser()
    dataDictLogArgParser = createDataDictionaryAugumentParser()
    filemanDBJsonArgParser = createFileManDBFileAugumentParser()
    parser = argparse.ArgumentParser(add_help=False,
                                     parents=[initCrossRefParser,
                                              callLogArgParser,
                                              dataDictLogArgParser,
                                              filemanDBJsonArgParser])
    return parser
Exemplo n.º 3
0
def createCrossReferenceLogArgumentParser():
    initCrossRefParser = createInitialCrossRefGenArgParser()
    callLogArgParser = createCallGraphLogAugumentParser()
    dataDictLogArgParser = createDataDictionaryAugumentParser()
    filemanDBJsonArgParser = createFileManDBFileAugumentParser()
    parser = argparse.ArgumentParser(add_help=False,
                                     parents=[initCrossRefParser,
                                              callLogArgParser,
                                              dataDictLogArgParser,
                                              filemanDBJsonArgParser])
    parser.add_argument('-o', '--outDir', required=True,
                        help='Output Web Page directory')
    parser.add_argument('-lf', '--logFileDir', required=True,
                        help='Logfile directory')
    return parser
Exemplo n.º 4
0
def createCrossReferenceLogArgumentParser():
    initCrossRefParser = createInitialCrossRefGenArgParser()
    callLogArgParser = createCallGraphLogAugumentParser()
    dataDictLogArgParser = createDataDictionaryAugumentParser()
    filemanDBJsonArgParser = createFileManDBFileAugumentParser()
    parser = argparse.ArgumentParser(add_help=False,
                                     parents=[
                                         initCrossRefParser, callLogArgParser,
                                         dataDictLogArgParser,
                                         filemanDBJsonArgParser
                                     ])
    parser.add_argument('-o',
                        '--outDir',
                        required=True,
                        help='Output Web Page directory')
    parser.add_argument('-lf',
                        '--logFileDir',
                        required=True,
                        help='Logfile directory')
    return parser
Exemplo n.º 5
0
def parseDataDictionaryLogFile(crossRef, fileSchemaDir):
    DDFileParser = DataDictionaryListFileLogParser(crossRef)
    DDFileParser.parseAllDataDictionaryListLog(fileSchemaDir, "*.schema")
    DDFileParser.parseAllDataDictionaryListLog(fileSchemaDir, ".*.schema")
    return DDFileParser


def createDataDictionaryAugumentParser():
    parser = argparse.ArgumentParser(add_help=False)  # no help page
    argGroup = parser.add_argument_group("Data Dictionary Parser Auguments")
    argGroup.add_argument('-fs',
                          '--fileSchemaDir',
                          required=True,
                          help='VistA File Man Schema log Directory')
    return parser


if __name__ == '__main__':
    callLogArgParser = createCallGraphLogAugumentParser()
    dataDictArgParser = createDataDictionaryAugumentParser()
    parser = argparse.ArgumentParser(
        description='VistA Cross-Reference Data Dictionary Log Files Parser',
        parents=[callLogArgParser, dataDictArgParser])
    result = parser.parse_args()
    initConsoleLogging()
    logFileParser = parseAllCallGraphLogWithArg(result)
    DDFileParser = parseDataDictionaryLogFile(
        logFileParser.getCrossReference(), result.fileSchemaDir)
    testOutput(DDFileParser)
Exemplo n.º 6
0
      logger.info(item)

import logging
from CallerGraphParser import createCallGraphLogAugumentParser
from CallerGraphParser import parseAllCallGraphLogWithArg

def parseDataDictionaryLogFile(crossRef, fileSchemaDir):
    DDFileParser = DataDictionaryListFileLogParser(crossRef)
    DDFileParser.parseAllDataDictionaryListLog(fileSchemaDir, "*.schema")
    DDFileParser.parseAllDataDictionaryListLog(fileSchemaDir, ".*.schema")
    return DDFileParser

def createDataDictionaryAugumentParser():
    parser = argparse.ArgumentParser(add_help=False) # no help page
    argGroup = parser.add_argument_group("Data Dictionary Parser Auguments")
    argGroup.add_argument('-fs', '--fileSchemaDir', required=True,
                          help='VistA File Man Schema log Directory')
    return parser
if __name__ == '__main__':
    callLogArgParser = createCallGraphLogAugumentParser()
    dataDictArgParser = createDataDictionaryAugumentParser()
    parser = argparse.ArgumentParser(
          description='VistA Cross-Reference Data Dictionary Log Files Parser',
          parents=[callLogArgParser, dataDictArgParser])
    result = parser.parse_args();
    initConsoleLogging()
    logFileParser = parseAllCallGraphLogWithArg(result)
    DDFileParser = parseDataDictionaryLogFile(logFileParser.getCrossReference(),
                                              result.fileSchemaDir)
    testOutput(DDFileParser)
Exemplo n.º 7
0
def createCrossReferenceLogArgumentParser():
    callLogArgParser = createCallGraphLogAugumentParser()
    dataDictLogArgParser = createDataDictionaryAugumentParser()
    parser = argparse.ArgumentParser(
        add_help=False, parents=[callLogArgParser, dataDictLogArgParser])
    return parser