Removed setting of the scope in the ProjectSurvey init.
This is because it is not possible to query for another entity outside your entity group in the __init__ fucntion.
--- a/app/soc/models/project_survey.py Tue Jun 30 08:50:56 2009 +0200
+++ b/app/soc/models/project_survey.py Tue Jun 30 08:54:39 2009 +0200
@@ -34,7 +34,6 @@
super(ProjectSurvey, self).__init__(*args, **kwargs)
self.prefix = 'program'
self.taking_access = 'student'
- self.scope = Program.get_by_key_name(self.scope_path)
def getRecords(self):
"""Returns all ProjectSurveyRecords belonging to this survey.