take care, self.config may not be a server config
authorsylvain.thenault@logilab.fr
Thu, 02 Apr 2009 18:52:08 +0200
changeset 1219 054bb575c013
parent 1218 680a8fe589a8
child 1228 91ae10ffb611
take care, self.config may not be a server config
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()