Home | History | Annotate | Download | only in frontend

Lines Matching defs:config

37 config = global_config.global_config
38 SHARD_HOSTNAME = config.get_config_value('SHARD', 'shard_hostname',
43 """Retrieves a config value for the specified key.
45 @param config_key: The string key associated with the desired config value.
46 @param section: Section of global config to read config. Default is set to
51 @return: The config value, as returned by
54 return config.get_config_value(section, config_key, **kwargs)
57 def _get_global_config(config_key, default=config._NO_DEFAULT_SPECIFIED,
59 """Retrieves a global config value for the specified key.
67 @param config_key: The string key associated with the desired config value.
73 @return: The config value, as returned by
79 if SHARD_HOSTNAME and default == config._NO_DEFAULT_SPECIFIED:
86 def _get_readonly_config(config_key, default=config._NO_DEFAULT_SPECIFIED,
88 """Retrieves a readonly config value for the specified key.
93 @param config_key: The string key associated with the desired config value.
99 @return: The config value, as returned by
108 def _get_server_db_config(config_key, default=config._NO_DEFAULT_SPECIFIED,
110 """Retrieves a config value for the specified key for server database.
117 @param config_key: The string key associated with the desired config value.
123 @return: The config value, as returned by
139 config = {
149 if config['READONLY_USER'] != config['USER']:
150 config['READONLY_PASSWORD'] = getter('readonly_password', default='')
152 config['READONLY_PASSWORD'] = config['PASSWORD']
153 return config