# HG changeset patch # User Lennard de Rijk # Date 1246344879 -7200 # Node ID c3e3df63e68314f48e7e747cf015979f128881e0 # Parent b8b0c631bcfed953ee1dec56dffec3209771cdad 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. diff -r b8b0c631bcfe -r c3e3df63e683 app/soc/models/project_survey.py --- 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.