equal
deleted
inserted
replaced
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 |