コード例 #1
0
ファイル: mainScrape.py プロジェクト: Kadantte/MangaCMS-1
def preflight():
    MangaCMS.lib.logSetup.initLogging(logToDb=True)

    # A side effect of get_plugins() is to validate there are no database key conflicts.
    # This has been an issue in the past.
    MangaCMS.util.runPlugin.get_plugins()

    firstRun.checkInitTables()

    runStatus.notq = None

    MangaCMS.lib.statusManager.resetAllRunningFlags()
    schemaUpdater.schemaRevisioner.updateDatabaseSchema()

    nt.dirNameProxy.startDirObservers()
コード例 #2
0
ファイル: mainScrape.py プロジェクト: GDXN/MangaCMS
def preflight():
	logSetup.initLogging(logToDb=True)

	# A side effect of get_plugins() is to validate there are no database key conflicts.
	# This has been an issue in the past.
	utilities.runPlugin.get_plugins()

	firstRun.checkInitTables()

	# runStatus.notq = UploadPlugins.Madokami.notifier.start_notifier()
	runStatus.notq = None

	schemaUpdater.schemaRevisioner.updateDatabaseSchema()
	statusManager.resetAllRunningFlags()

	nt.dirNameProxy.startDirObservers()