Style fixes and a forgotten parameter in Survey(Record) logic.
Reviewed by: Lennard de Rijk
--- a/app/soc/logic/models/survey.py Fri Jul 03 12:05:23 2009 +0200
+++ b/app/soc/logic/models/survey.py Fri Jul 03 12:10:24 2009 +0200
@@ -346,6 +346,7 @@
# return the scope
return entity.scope
+
class ProjectLogic(Logic):
"""Logic class for ProjectSurvey.
"""
@@ -373,7 +374,8 @@
super(GradingProjectLogic, self).__init__(model=model,
base_model=base_model,
- scope_logic=scope_logic)
+ scope_logic=scope_logic,
+ record_logic=record_logic)
logic = Logic()
--- a/app/soc/logic/models/survey_record.py Fri Jul 03 12:05:23 2009 +0200
+++ b/app/soc/logic/models/survey_record.py Fri Jul 03 12:10:24 2009 +0200
@@ -83,8 +83,9 @@
"""Defines the name, key_name and model for this entity.
"""
- super(GradingProjectLogic, self).__init__(model=model, base_model=base_model,
- scope_logic=scope_logic)
+ super(GradingProjectLogic, self).__init__(model=model,
+ base_model=base_model,
+ scope_logic=scope_logic)
logic = Logic()