# HG changeset patch # User Julien Cristau # Date 1435320256 -7200 # Node ID 7dd84b69c7d419993705a9fd9b676101785c7f96 # Parent f04a77fe84188730c257b03722b3d0fe86a710c8 [devtools] avoid warning about source['global-db-name'] sqlite and postgres db handlers store the db template name there. diff -r f04a77fe8418 -r 7dd84b69c7d4 devtools/__init__.py --- a/devtools/__init__.py Fri Jun 26 10:52:03 2015 +0200 +++ b/devtools/__init__.py Fri Jun 26 14:04:16 2015 +0200 @@ -296,6 +296,14 @@ # pure consistency check assert self.system_source['db-driver'] == self.DRIVER + # some handlers want to store info here, avoid a warning + from cubicweb.server.sources.native import NativeSQLSource + NativeSQLSource.options += ( + ('global-db-name', + {'type': 'string', 'help': 'for internal use only' + }), + ) + def _ensure_test_backup_db_dir(self): """Return path of directory for database backup.