<s> __author__ = '<STR_LIT>' <EOL> from hydro . conf . settings import * <EOL> ALL = '<STR_LIT>' <EOL> class Configuration ( object ) : <EOL> _conf = { } <EOL> def set ( self , key , val ) : <EOL> self . _conf [ key ] = val <EOL> def get ( self , key ) : <EOL> return self . _conf [ key ] <EOL> @ property <EOL> def conf ( self ) : <EOL> return self . _conf <EOL> class Configurator ( object ) : <EOL> """<STR_LIT>""" <EOL> APPLICATION_NAME = APPLICATION_NAME <EOL> SECRET_KEY = SECRET_KEY <EOL> TIME_ZONE = TIME_ZONE <EOL> LANGUAGE_CODE = LANGUAGE_CODE <EOL> SECOND = SECOND <EOL> MINUTE = MINUTE <EOL> LOG_DIR = LOG_DIR <EOL> DATABASES = DATABASES <EOL> SECONDS_IN_DAY = SECONDS_IN_DAY <EOL> MYSQL_CACHE_DB = MYSQL_CACHE_DB <EOL> MYSQL_CACHE_TABLE = MYSQL_CACHE_TABLE <EOL> CACHE_IN_MEMORY_KEY_EXPIRE = CACHE_IN_MEMORY_KEY_EXPIRE <EOL> CACHE_DB_KEY_EXPIRE = CACHE_DB_KEY_EXPIRE <EOL> USE_STATS_DB = USE_STATS_DB <EOL> VERTICA = '<STR_LIT>' <EOL> MYSQL = '<STR_LIT>' <EOL> HBASE = '<STR_LIT>' <EOL> COUCHBASE = '<STR_LIT>' <EOL> MEMCACHE = '<STR_LIT>' <EOL> CACHE_ENGINE_MYSQL_CACHE = '<STR_LIT>' <EOL> CACHE_ENGINE_IN_MEMORY = '<STR_LIT:default>' <EOL> OPTIMIZER_STATISTICS = { ALL : { '<STR_LIT>' : None , <EOL> '<STR_LIT>' : None , <EOL> '<STR_LIT>' : None , <EOL> '<STR_LIT>' : None , <EOL> '<STR_LIT>' : None , <EOL> '<STR_LIT>' : None , <EOL> '<STR_LIT>' : None , <EOL> '<STR_LIT>' : None , <EOL> '<STR_LIT>' : None , <EOL> '<STR_LIT>' : None , <EOL> '<STR_LIT>' : None , <EOL> '<STR_LIT>' : None , <EOL> '<STR_LIT>' : None , <EOL> '<STR_LIT>' : None , <EOL> '<STR_LIT>' : None , <EOL> '<STR_LIT>' : None , <EOL> '<STR_LIT>' : None , <EOL> '<STR_LIT>' : None , <EOL> } , <EOL> } <EOL> @ classmethod <EOL> def config_builder ( cls ) : <EOL> conf = Configuration ( ) <EOL> conf . CONNECTIONS = { } <EOL> return conf <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> print Configurator . APPLICATION_NAME </s>
