widget fix, thanks Paolo
This commit is contained in:
+6
-5
@@ -323,9 +323,9 @@ class web2pyDialog(object):
|
|||||||
if start:
|
if start:
|
||||||
# the widget takes care of starting the scheduler
|
# the widget takes care of starting the scheduler
|
||||||
if self.options.scheduler and self.options.with_scheduler:
|
if self.options.scheduler and self.options.with_scheduler:
|
||||||
apps = [app.strip() for app
|
apps = [app for app
|
||||||
in self.options.scheduler.split(',').split(':', 1)[0]
|
in map(lambda ag : ag.split(':', 1)[0].strip(), self.options.scheduler.split(','))
|
||||||
if app.strip() in available_apps]
|
if app in available_apps]
|
||||||
for app in apps:
|
for app in apps:
|
||||||
self.try_start_scheduler(app)
|
self.try_start_scheduler(app)
|
||||||
|
|
||||||
@@ -1044,8 +1044,9 @@ def start(cron=True):
|
|||||||
global_settings.web2py_crontype = 'external'
|
global_settings.web2py_crontype = 'external'
|
||||||
if options.scheduler:
|
if options.scheduler:
|
||||||
# run cron for applications listed with --scheduler (-K)
|
# run cron for applications listed with --scheduler (-K)
|
||||||
apps = [app.strip() for app in options.scheduler.split(
|
apps = [app for app
|
||||||
',').split(':', 1)[0] if check_existent_app(options, app.strip())]
|
in map(lambda ag : ag.split(':', 1)[0].strip(), options.scheduler.split(','))
|
||||||
|
if check_existent_app(options, app)]
|
||||||
else:
|
else:
|
||||||
apps = None
|
apps = None
|
||||||
extcron = newcron.extcron(options.folder, apps=apps)
|
extcron = newcron.extcron(options.folder, apps=apps)
|
||||||
|
|||||||
Reference in New Issue
Block a user