# HG changeset patch # User sylvain.thenault@logilab.fr # Date 1238691128 -7200 # Node ID 054bb575c013de2ea8f7737e40ddd1423e22a5d6 # Parent 680a8fe589a87cdb858d610f593b2d0c706d273b take care, self.config may not be a server config diff -r 680a8fe589a8 -r 054bb575c013 cwctl.py --- a/cwctl.py Thu Apr 02 17:35:03 2009 +0200 +++ b/cwctl.py Thu Apr 02 18:52:08 2009 +0200 @@ -619,7 +619,11 @@ config = CubicWebConfiguration.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()