fix dumb name error, should call cubes_search_path, not cubes_path
authorsylvain.thenault@logilab.fr
Tue, 17 Mar 2009 19:28:11 +0100
changeset 1116 163e6a65d488
parent 1115 1a9e386ebdda
child 1117 20a21b3153b0
fix dumb name error, should call cubes_search_path, not cubes_path
devtools/devctl.py
--- a/devtools/devctl.py	Fri Mar 13 11:07:47 2009 +0100
+++ b/devtools/devctl.py	Tue Mar 17 19:28:11 2009 +0100
@@ -424,8 +424,8 @@
         #    self.fail("you can only create new cubes in development mode")
         verbose = self.get('verbose')
         cubesdir = self.get('directory')
-        if not cubedir:
-            cubespath = ServerConfiguration.cubes_path()
+        if not cubesdir:
+            cubespath = ServerConfiguration.cubes_search_path()
             if len(cubespath) > 1:
                 raise BadCommandUsage("can't guess directory where to put the new cube."
                                       " Please specify it using the --directory option")
@@ -435,7 +435,7 @@
             try:
                 mkdir(cubesdir)
             except OSError, err:
-                self.fail("failed to create directory %r\n(%s)" % (cubedir, err))
+                self.fail("failed to create directory %r\n(%s)" % (cubesdir, err))
         cubedir = join(cubesdir, cubename)
         if exists(cubedir):
             self.fail("%s already exists !" % (cubedir))