Exemplo n.º 1
0
def shutdown():
    Utility.stopWakeup()
    Utility.stopTwisted()
    Utility.stopRepository(view)
    Utility.stopCrypto(Globals.options.profileDir)
Exemplo n.º 2
0
def shutdown():
    Utility.stopWakeup()
    Utility.stopTwisted()
    Utility.stopRepository(view, commitOnExit)
    Utility.stopCrypto(Globals.options.profileDir)
Exemplo n.º 3
0
    parcelPath = Utility.initParcelEnv(Globals.options,
                                       Globals.chandlerDirectory)
    pluginEnv, pluginEggs = Utility.initPluginEnv(Globals.options,
                                                  Globals.options.pluginPath)

    view = Utility.initRepository(profileDir, Globals.options)

    verify, repoVersion, schemaVersion = Utility.verifySchema(view)

    Utility.initCrypto(Globals.options.profileDir)
    Utility.initParcels(Globals.options, view, parcelPath)
    Utility.initPlugins(Globals.options, view, pluginEnv, pluginEggs)
    Utility.initTimezone(Globals.options, view)

    outputDir = os.path.join(Globals.chandlerDirectory, 'docs')

    if os.path.isfile('Chandler.py'):
        if not os.path.isdir(outputDir):
            _mkdirs(outputDir)

        generateModelDocs(Globals.chandlerDirectory, view, outputDir)
        generateDocs(outputDir)
    else:
        print "Error: Currently gen_docs.py assumes it is running in the chandler/ directory"

    Utility.stopWakeup()
    Utility.stopTwisted()
    Utility.stopRepository(view, False)
    Utility.stopCrypto(Globals.options.profileDir)
Exemplo n.º 4
0
    parcelPath = Utility.initParcelEnv(Globals.options, 
                                       Globals.chandlerDirectory)
    pluginEnv, pluginEggs = Utility.initPluginEnv(Globals.options,
                                                  Globals.options.pluginPath)

    view = Utility.initRepository(profileDir, Globals.options)

    verify, repoVersion, schemaVersion = Utility.verifySchema(view)

    Utility.initCrypto(Globals.options.profileDir)
    Utility.initParcels(Globals.options, view, parcelPath)
    Utility.initPlugins(Globals.options, view, pluginEnv, pluginEggs)
    Utility.initTimezone(Globals.options, view)

    outputDir = os.path.join(Globals.chandlerDirectory, 'docs')

    if os.path.isfile('Chandler.py'):
        if not os.path.isdir(outputDir):
            _mkdirs(outputDir)

        generateModelDocs(Globals.chandlerDirectory, view, outputDir)
        generateDocs(outputDir)
    else:
        print "Error: Currently gen_docs.py assumes it is running in the chandler/ directory"

    Utility.stopWakeup()
    Utility.stopTwisted()
    Utility.stopRepository(view, False)
    Utility.stopCrypto(Globals.options.profileDir)