diff -r 76b3cd5d4f31 -r 01152fffd593 cwctl.py --- a/cwctl.py Mon Apr 06 12:37:45 2009 +0200 +++ b/cwctl.py Tue Apr 07 09:30:23 2009 +0200 @@ -187,7 +187,6 @@ for cube in cwcfg.available_cubes(): if cube in ('CVS', '.svn', 'shared', '.hg'): continue - templdir = join(cubesdir, cube) try: tinfo = cwcfg.cube_pkginfo(cube) tversion = tinfo.version @@ -200,7 +199,7 @@ or tinfo.__doc__) if shortdesc: print ' '+ ' \n'.join(shortdesc.splitlines()) - modes = detect_available_modes(templdir) + modes = detect_available_modes(CubicWebConfiguration.cube_dir(cube)) print ' available modes: %s' % ', '.join(modes) print try: @@ -622,7 +621,11 @@ config = cwcfg.config_for(appid) config.creating = True # notice we're not starting the server config.verbosity = self.config.verbosity - config.set_sources_mode(self.config.ext_sources or ('migration',)) + try: + config.set_sources_mode(self.config.ext_sources or ('migration',)) + except AttributeError: + # not a server config + pass # get application and installed versions for the server and the componants print 'getting versions configuration from the repository...' mih = config.migration_handler()