cubicweb/cwctl.py
changeset 11992 fa1837a85708
parent 11991 d6e2b6d56432
child 12053 c3c9f2e1424c
equal deleted inserted replaced
11991:d6e2b6d56432 11992:fa1837a85708
   511             import twisted  # noqa
   511             import twisted  # noqa
   512         except ImportError:
   512         except ImportError:
   513             msg = (
   513             msg = (
   514                 "Twisted is required by the 'start' command\n"
   514                 "Twisted is required by the 'start' command\n"
   515                 "Either install it, or use one of the alternative commands:\n"
   515                 "Either install it, or use one of the alternative commands:\n"
   516                 "- '{ctl} wsgi {appid}'\n"
   516                 "- '{ctl} pyramid {appid}'\n"
   517                 "- '{ctl} pyramid {appid}'\n")
   517                 "- '{ctl} wsgi {appid}'\n")
   518             raise ExecutionError(msg.format(ctl='cubicweb-ctl', appid=appid))
   518             raise ExecutionError(msg.format(ctl='cubicweb-ctl', appid=appid))
   519         config = cwcfg.config_for(appid, debugmode=self['debug'])
   519         config = cwcfg.config_for(appid, debugmode=self['debug'])
   520         # override config file values with cmdline options
   520         # override config file values with cmdline options
   521         config.cmdline_options = self.config.param
   521         config.cmdline_options = self.config.param
   522         init_cmdline_log_threshold(config, self['loglevel'])
   522         init_cmdline_log_threshold(config, self['loglevel'])