From 39c6b2bdc601c60dd3cf1acacf795fec721224ca Mon Sep 17 00:00:00 2001 From: Elrond Date: Mon, 11 Jul 2011 23:25:15 +0200 Subject: Move db_name default into config_spec.ini The default name of the database ("mediagoblin") was coded in db/open.py and init/celery/__init__.py. Instead use the new config system to have this as the default for the "db_name" config option. --- mediagoblin/db/open.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mediagoblin/db') diff --git a/mediagoblin/db/open.py b/mediagoblin/db/open.py index cae33394..b6987677 100644 --- a/mediagoblin/db/open.py +++ b/mediagoblin/db/open.py @@ -30,7 +30,7 @@ def connect_database_from_config(app_config): def setup_connection_and_db_from_config(app_config): connection = connect_database_from_config(app_config) - database_path = app_config.get('db_name', 'mediagoblin') + database_path = app_config['db_name'] db = connection[database_path] models.register_models(connection) # Could configure indexes here on db -- cgit v1.2.3