#NEWLINE# def _register_app_opts( ) : #NEWLINE# #INDENT# static_root = os . path . join ( cfg . CONF . system . base_path , 'static' ) #NEWLINE# template_path = os . path . join ( BASE_DIR , 'templates/' ) #NEWLINE# pecan_opts = [ cfg . StrOpt ( 'root' , default = 'st2api.controllers.root.RootController' , help = 'Action root controller' ) , cfg . StrOpt ( 'static_root' , default = static_root ) , cfg . StrOpt ( 'template_path' , default = template_path ) , cfg . ListOpt ( 'modules' , default = [ 'st2api' ] ) , cfg . BoolOpt ( 'debug' , default = False ) , cfg . BoolOpt ( 'auth_enable' , default = True ) , cfg . DictOpt ( 'errors' , default = { #NEWLINE# #INDENT# '__force_dict__' : True , #NEWLINE# #UNINDENT# } ) ] #NEWLINE# CONF . register_opts ( static_root , group = 'api_pecan' ) #NEWLINE# logging_opts = [ cfg . StrOpt ( 'logging' , default = 'conf/logging.conf' , help = 'location of the logging.conf file' ) ] #NEWLINE# CONF . register_opts ( logging_opts , group = 'api' )