Lines Matching refs:getter
132 def _get_database_config(getter):
135 @param getter: A function to call to get configuration values.
141 'PORT': getter('port', default=''),
142 'HOST': getter('host'),
143 'NAME': getter('database'),
144 'USER': getter('user'),
145 'PASSWORD': getter('password', default=''),
146 'READONLY_HOST': getter('readonly_host', default=getter('host')),
147 'READONLY_USER': getter('readonly_user', default=getter('user')),
150 config['READONLY_PASSWORD'] = getter('readonly_password', default='')
161 return _get_database_config(getter=_get_global_config)
169 return _get_database_config(getter=_get_config)
177 return _get_database_config(getter=_get_readonly_config)
185 return _get_database_config(getter=_get_server_db_config)