# HG changeset patch # User Sverre Rabbelier # Date 1246678879 25200 # Node ID 4b39352e5a07cb580b9eedec96cadd65ca7416ef # Parent 9d9d1ded30ee317ca1173bedd153c9b326324d8d try to fix the surveys-have-no-scope issue to-be-reviewed: also untested diff -r 9d9d1ded30ee -r 4b39352e5a07 app/soc/logic/models/survey.py --- a/app/soc/logic/models/survey.py Fri Jul 03 18:39:17 2009 -0700 +++ b/app/soc/logic/models/survey.py Fri Jul 03 20:41:19 2009 -0700 @@ -346,6 +346,13 @@ # return the scope return entity.scope + def _onCreate(self, entity): + """Set the scope of the survey. + """ + + self.getScope(entity) + super(Logic, self)._onCreate(entity) + class ProjectLogic(Logic): """Logic class for ProjectSurvey.