cubicweb-ctl create improvements
* list sqlserver2005 as supported database
* tell that each name must have a unique name
* pass the input level to other sources that we want to configure
--- a/server/serverctl.py Mon Apr 26 15:28:43 2010 +0200
+++ b/server/serverctl.py Mon Apr 26 17:55:36 2010 +0200
@@ -175,11 +175,11 @@
break
print '-> unknown source type, use one of the available types.'
while True:
- sourceuri = raw_input('source uri: ').strip()
+ sourceuri = raw_input('source identifier (a unique name used to tell sources apart): ').strip()
if sourceuri != 'admin' and sourceuri not in sourcescfg:
break
print '-> uri already used, choose another one.'
- sourcescfg[sourceuri] = ask_source_config(sourcetype)
+ sourcescfg[sourceuri] = ask_source_config(sourcetype, inputlevel)
sourcemodule = SOURCE_TYPES[sourcetype].module
if not sourcemodule.startswith('cubicweb.'):
# module names look like cubes.mycube.themodule
--- a/server/sources/native.py Mon Apr 26 15:28:43 2010 +0200
+++ b/server/sources/native.py Mon Apr 26 17:55:36 2010 +0200
@@ -177,7 +177,7 @@
('db-driver',
{'type' : 'string',
'default': 'postgres',
- 'help': 'database driver (postgres or sqlite)',
+ 'help': 'database driver (postgres, sqlite, sqlserver2005)',
'group': 'native-source', 'inputlevel': 1,
}),
('db-host',