예제 #1
0
def main():
    schema = sys.argv[1]
    output = sys.argv[2]

    api = vdsmapi.get_api(schema)
    # verify_symbols(symbols)

    # Now merge in the information from the comments
    with open(schema) as f:
        symbols = read_schema_doc(f, api)

    create_doc(symbols, output)
예제 #2
0
def main():
    schema = sys.argv[1]
    output = sys.argv[2]

    api = vdsmapi.get_api(schema)
    # verify_symbols(symbols)

    # Now merge in the information from the comments
    with open(schema) as f:
        symbols = read_schema_doc(f, api)

    create_doc(symbols, output)
예제 #3
0
 def __init__(self):
     self.api = vdsmapi.get_api()
     self._threadLocal = threading.local()
예제 #4
0
 def __init__(self):
     self.api = vdsmapi.get_api()
예제 #5
0
 def testSchemaParse(self):
     self.assertTrue(isinstance(vdsmapi.get_api(), dict))
예제 #6
0
파일: Bridge.py 프로젝트: vinzenz/vdsm
 def __init__(self):
     self.api = vdsmapi.get_api()
예제 #7
0
파일: Bridge.py 프로젝트: aiminickwong/vdsm
 def __init__(self):
     self.api = vdsmapi.get_api()
     self._threadLocal = threading.local()
예제 #8
0
파일: vmTests.py 프로젝트: fzkbass/vdsm
 def _getAPI(self):
     testPath = os.path.realpath(__file__)
     dirName = os.path.split(testPath)[0]
     apiPath = os.path.join(
         dirName, '..', 'vdsm_api', 'vdsmapi-schema.json')
     return vdsmapi.get_api(apiPath)