try to fix the surveys-have-no-scope issue
authorSverre Rabbelier <sverre@rabbelier.nl>
Fri, 03 Jul 2009 20:41:19 -0700
changeset 2524 4b39352e5a07
parent 2523 9d9d1ded30ee
child 2525 7df431ddcfd3
try to fix the surveys-have-no-scope issue to-be-reviewed: also untested
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.