equal
deleted
inserted
replaced
123 template = 'soc/error.html' |
123 template = 'soc/error.html' |
124 context['message'] = 'Uknown option "%s".' % option_name |
124 context['message'] = 'Uknown option "%s".' % option_name |
125 else: |
125 else: |
126 template = 'soc/tasks/run_update.html' |
126 template = 'soc/tasks/run_update.html' |
127 context['option'] = option |
127 context['option'] = option |
128 context['success'] = option['starter'](request, self._getRunUpdateURL(option_name)) |
128 context['success'] = option['starter'](request, |
|
129 self._getRunUpdateURL(option_name)) |
129 |
130 |
130 content = loader.render_to_string(template, dictionary=context) |
131 content = loader.render_to_string(template, dictionary=context) |
131 return http.HttpResponse(content) |
132 return http.HttpResponse(content) |
132 |
133 |
133 def _getRunUpdateURL(self, option): |
134 def _getRunUpdateURL(self, option): |