app/soc/tasks/updates/start_update.py
changeset 2932 666d31bd43bd
parent 2931 e89022c0657f
child 3004 8485ae85de54
equal deleted inserted replaced
2931:e89022c0657f 2932:666d31bd43bd
   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):