app/soc/views/models/grading_project_survey.py
changeset 2660 e2654d53a643
parent 2659 8df08a3b17db
child 2686 ada26cef0b06
equal deleted inserted replaced
2659:8df08a3b17db 2660:e2654d53a643
    74     super(View, self).__init__(params=params)
    74     super(View, self).__init__(params=params)
    75 
    75 
    76   def _getSurveyTakeForm(self, survey, record, params, post_dict=None):
    76   def _getSurveyTakeForm(self, survey, record, params, post_dict=None):
    77     """Returns the specific SurveyTakeForm needed for the take view.
    77     """Returns the specific SurveyTakeForm needed for the take view.
    78 
    78 
    79     Args:
    79     For args see survey.View._getSurveyTakeForm().
    80         survey: a Survey entity
       
    81         record: a SurveyRecord instance if any exist
       
    82         params: the params dict for the requesting View
       
    83 
    80 
    84     Returns:
    81     Returns:
    85         An instance of GradseSurveyTakeForm.
    82         An instance of GradeSurveyTakeForm.
    86     """
    83     """
    87 
    84 
    88     grade_choices = (('pass', 'Pass'), ('fail', 'Fail'))
    85     grade_choices = (('pass', 'Pass'), ('fail', 'Fail'))
    89     survey_form = GradeSurveyTakeForm(survey_content=survey.survey_content,
    86     survey_form = GradeSurveyTakeForm(survey_content=survey.survey_content,
    90                                       survey_record=record,
    87                                       survey_record=record,