Changed the filter for getting a SurveyRecord for a ProjectSurvey
ProjectSurveyRecords are characterized by the Survey and a Project entity. The user property is just there to state who last submitted the Survey.
--- a/app/soc/views/models/project_survey.py Sun Jul 05 13:00:08 2009 +0200
+++ b/app/soc/views/models/project_survey.py Sun Jul 05 13:31:34 2009 +0200
@@ -112,14 +112,11 @@
survey_logic = params['logic']
record_logic = survey_logic.getRecordLogic()
- user_entity = user_logic.getForCurrentAccount()
-
# get the StudentProject specified in the GET params
project_key_name = request.GET['project']
project_entity = student_project_logic.getFromKeyName(project_key_name)
filter = {'survey': survey,
- 'user': user_entity,
'project': project_entity}
return record_logic.getForFields(filter, unique=True)