# HG changeset patch # User sylvain.thenault@logilab.fr # Date 1237314491 -3600 # Node ID 163e6a65d48805bbf7340b1feb13a93fff3bc83c # Parent 1a9e386ebdda4223306f857c0c2715aecea62faf fix dumb name error, should call cubes_search_path, not cubes_path diff -r 1a9e386ebdda -r 163e6a65d488 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))