Style fixes to the GradingProjectSurvey View module.
authorLennard de Rijk <ljvderijk@gmail.com>
Fri, 03 Jul 2009 18:34:18 +0200
changeset 2513 c6de2d3eae90
parent 2512 2e8ccec037a9
child 2514 53fabbd7c6f3
Style fixes to the GradingProjectSurvey View module.
app/soc/views/models/grading_project_survey.py
--- a/app/soc/views/models/grading_project_survey.py	Fri Jul 03 18:23:34 2009 +0200
+++ b/app/soc/views/models/grading_project_survey.py	Fri Jul 03 18:34:18 2009 +0200
@@ -67,7 +67,8 @@
     """This is a hack to support the 'Enable grades' button.
     """
     self.activateGrades(request)
-    redirect_path = request.path.replace('/activate/', '/edit/') + '?activate=1'
+    redirect_path = request.path.replace('/activate/', '/edit/') + (
+        '?activate=1')
     return http.HttpResponseRedirect(redirect_path)
 
 
@@ -79,7 +80,6 @@
     survey_logic.activateGrades(survey)
     return
 
-
   def _takeGet(self, request, template, context, params, entity, record,
               **kwargs):
     """Hook for the GET request for the Survey's take page.
@@ -100,17 +100,17 @@
     return super(View, self)._takeGet(request, template, context,
                                       params, entity, record, **kwargs)
 
+  def addGradeField(self, survey, survey_record):
+    """Adds a Grade Field to Survey.
 
-  def addGradeField(self, survey, survey_record):
-    """ adds a Grade Field to Survey.
-    Used for mentor evaluations. 
+    Used for mentor evaluations.
 
     params:
       survey: the survey being taken
       survey_record: an existing survey record for a user-project-survey combo,
         or None
+    """
 
-    """ 
     # Add a grade field determining if student passes or fails.
     # Activate grades handler should determine whether new status
     # is midterm_passed, final_passed, etc.