devtools/__init__.py
changeset 10472 7dd84b69c7d4
parent 10440 eecb7bbb6795
child 10474 1dcc52f5e340
--- 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.