# HG changeset patch # User Lennard de Rijk # Date 1246638858 -7200 # Node ID c6de2d3eae9077a3e00883b898d7c022873532e5 # Parent 2e8ccec037a9b5071285954a8677ce53aeb3ddbc Style fixes to the GradingProjectSurvey View module. diff -r 2e8ccec037a9 -r c6de2d3eae90 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.