<s> from __future__ import absolute_import , division , print_function , with_statement <EOL> from copy import deepcopy <EOL> class ObjectDict ( dict ) : <EOL> """<STR_LIT>""" <EOL> def __getattr__ ( self , name ) : <EOL> try : <EOL> return self [ name ] <EOL> except KeyError : <EOL> raise AttributeError ( name ) <EOL> def __setattr__ ( self , name , value ) : <EOL> self [ name ] = value <EOL> class AppConfig ( object ) : <EOL> _cookie_session_config = ObjectDict ( <EOL> name = '<STR_LIT>' , <EOL> cookie_domain = None , <EOL> cookie_path = '<STR_LIT:/>' , <EOL> cookie_expires = <NUM_LIT> , <EOL> secure = True , <EOL> secret_key = '<STR_LIT>' , <EOL> timeout = <NUM_LIT> , <EOL> ) <EOL> _store_config = ObjectDict ( <EOL> diskpath = '<STR_LIT>' , <EOL> ) <EOL> def __init__ ( self ) : <EOL> self . app_name = '<STR_LIT>' <EOL> self . urls = [ ] <EOL> self . error_handler = None <EOL> self . app_setting = { } <EOL> self . web_application_setting = { } <EOL> self . project_name = None <EOL> self . session_config = self . _cookie_session_config <EOL> self . store_config = self . _store_config <EOL> @ property <EOL> def log_level ( self ) : <EOL> import logging <EOL> level = self . app_setting . get ( '<STR_LIT>' , { } ) . get ( '<STR_LIT>' ) <EOL> if level is None : <EOL> return logging . INFO <EOL> return level <EOL> app_config = AppConfig ( ) </s>
