Also pass along the args when running an update.
--- a/app/soc/tasks/updates/start_update.py Sat Oct 03 21:49:08 2009 +0200
+++ b/app/soc/tasks/updates/start_update.py Sun Oct 04 15:07:29 2009 +0200
@@ -139,7 +139,7 @@
"""
return '/tasks/update/run/%s' % option
- def runTask(self, request, option_name, **kwargs):
+ def runTask(self, request, option_name, *args, **kwargs):
"""Runs the specified Task for the given option.
"""
@@ -148,7 +148,7 @@
if not option:
error_handler('Uknown Updater option "%s".' % option_name)
else:
- return option['runner'](request, **kwargs)
+ return option['runner'](request, *args, **kwargs)
task_runner = TaskRunner()