cubicweb-ctl create improvements stable
authorAlexandre Fayolle <alexandre.fayolle@logilab.fr>
Mon, 26 Apr 2010 17:55:36 +0200
branchstable
changeset 5410 3cccd5e9dd7d
parent 5407 7730796f9506
child 5413 dc896e698ab0
child 5415 6bb0c3a53589
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
server/serverctl.py
server/sources/native.py
--- 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',