app/soc/models/survey.py
changeset 2454 849956450d69
parent 2445 761906e4254d
child 2493 0aabd2d76606
equal deleted inserted replaced
2453:9b8f3240e3bf 2454:849956450d69
   154 
   154 
   155   #: Referenceproperty that specifies the content of this survey.
   155   #: Referenceproperty that specifies the content of this survey.
   156   survey_content = db.ReferenceProperty(SurveyContent,
   156   survey_content = db.ReferenceProperty(SurveyContent,
   157                                      collection_name="survey_parent")
   157                                      collection_name="survey_parent")
   158 
   158 
   159   #: Survey kind, a helper for handling the different classes on creation.
       
   160   survey_kind = db.StringProperty(default='', required=False,
       
   161                                   choices=('', 'project', 'grading'))
       
   162 
       
   163   def getRecords(self):
   159   def getRecords(self):
   164     """Returns all SurveyRecords belonging to this survey.
   160     """Returns all SurveyRecords belonging to this survey.
   165     """
   161     """
   166     return self.survey_records
   162     return self.survey_records