Also pass along the args when running an update.
authorLennard de Rijk <ljvderijk@gmail.com>
Sun, 04 Oct 2009 15:07:29 +0200
changeset 3004 8485ae85de54
parent 3003 6a84c1ff5b5c
child 3005 fbdf957cb3a3
Also pass along the args when running an update.
app/soc/tasks/updates/start_update.py
--- 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()