Fixed the Student update to properly find its own URL.
Also style fix in start_update module.
--- a/app/soc/tasks/updates/start_update.py Wed Sep 16 13:38:18 2009 +0200
+++ b/app/soc/tasks/updates/start_update.py Wed Sep 16 20:09:13 2009 +0200
@@ -125,7 +125,8 @@
else:
template = 'soc/tasks/run_update.html'
context['option'] = option
- context['success'] = option['starter'](request, self._getRunUpdateURL(option_name))
+ context['success'] = option['starter'](request,
+ self._getRunUpdateURL(option_name))
content = loader.render_to_string(template, dictionary=context)
return http.HttpResponse(content)
--- a/app/soc/tasks/updates/student_school_type.py Wed Sep 16 13:38:18 2009 +0200
+++ b/app/soc/tasks/updates/student_school_type.py Wed Sep 16 20:09:13 2009 +0200
@@ -104,7 +104,8 @@
# pass along these params as POST to the new task
task_params = {'start_key': new_start}
- new_task = taskqueue.Task(params=task_params, url=request['PATH_INFO'])
+ new_task = taskqueue.Task(params=task_params,
+ url=request.META['PATH_INFO'])
new_task.add()
# task completed, return OK