# HG changeset patch # User Adrien Di Mascio # Date 1448443192 -3600 # Node ID 73e6ec94504bb7d941a3c3f8cdc1030524c98a24 # Parent 0aa9da35db307e6ac3bf9b8ed98850ceae2c71f7 [dataimport] fix db-namespace default value handling In a fresh new instance, the "db-namespace" option is set as empty by default in the "sources" file. This seems correct but empty string is not a valid pg_schema and actually means that we should use "public" diff -r 0aa9da35db30 -r 73e6ec94504b dataimport/massive_store.py --- a/dataimport/massive_store.py Wed Nov 25 11:30:36 2015 +0100 +++ b/dataimport/massive_store.py Wed Nov 25 10:19:52 2015 +0100 @@ -114,7 +114,7 @@ self.slave_mode = slave_mode self.default_values = get_default_values(cnx.vreg.schema) - pg_schema = cnx.repo.config.system_source_config.get('db-namespace', 'public') + pg_schema = cnx.repo.config.system_source_config.get('db-namespace') or 'public' self._dbh = PGHelper(self._cnx, pg_schema) self._data_entities = defaultdict(list) self._data_relations = defaultdict(list)