#NEWLINE# def __load_config( self ) : #NEWLINE# #INDENT# 'Loads the configuration from the Flask configuration.' #NEWLINE# options = dict ( ) #NEWLINE# job_stores = self . app . config . get ( 'SCHEDULER_JOBSTORES' ) #NEWLINE# if job_stores : #NEWLINE# #INDENT# options [ 'jobstores' ] = job_stores #NEWLINE# #UNINDENT# executors = self . app . config . get ( 'SCHEDULER_EXECUTORS' ) #NEWLINE# if executors : #NEWLINE# #INDENT# options [ 'executors' ] = executors #NEWLINE# #UNINDENT# job_defaults = self . app . config . get ( 'SCHEDULER_JOB_DEFAULTS' ) #NEWLINE# if job_defaults : #NEWLINE# #INDENT# options [ 'job_defaults' ] = job_defaults #NEWLINE# #UNINDENT# timezone = self . app . config . get ( 'SCHEDULER_TIMEZONE' ) #NEWLINE# if timezone : #NEWLINE# #INDENT# options [ 'timezone' ] = timezone #NEWLINE# #UNINDENT# self . __scheduler . configure ( ** job_stores ) #NEWLINE# self . __allowed_hosts = self . app . config . get ( 'SCHEDULER_ALLOWED_HOSTS' , self . __allowed_hosts ) #NEWLINE# self . __views_enabled = self . app . config . get ( 'SCHEDULER_VIEWS_ENABLED' , self . __views_enabled )