app/soc/logic/models/survey.py
changeset 2459 accd8ba94b44
parent 2455 a023b71ce125
child 2460 b8b0c631bcfe
equal deleted inserted replaced
2458:467ec0cf3ece 2459:accd8ba94b44
   412   def __init__(self, model=ProjectSurvey,
   412   def __init__(self, model=ProjectSurvey,
   413                base_model=Survey, scope_logic=linkable_logic):
   413                base_model=Survey, scope_logic=linkable_logic):
   414     """Defines the name, key_name and model for this entity.
   414     """Defines the name, key_name and model for this entity.
   415     """
   415     """
   416 
   416 
   417     super(Logic, self).__init__(model=model, base_model=base_model,
   417     super(ProjectLogic, self).__init__(model=model, base_model=base_model,
   418                                 scope_logic=scope_logic)
   418                                        scope_logic=scope_logic)
   419 
   419 
   420 
   420 
   421 class GradingProjectLogic(ProjectLogic):
   421 class GradingProjectLogic(ProjectLogic):
   422   """Logic class for GradingProjectSurvey
   422   """Logic class for GradingProjectSurvey
   423   """
   423   """
   425   def __init__(self, model=GradingProjectSurvey,
   425   def __init__(self, model=GradingProjectSurvey,
   426                base_model=ProjectSurvey, scope_logic=linkable_logic):
   426                base_model=ProjectSurvey, scope_logic=linkable_logic):
   427     """Defines the name, key_name and model for this entity.
   427     """Defines the name, key_name and model for this entity.
   428     """
   428     """
   429 
   429 
   430     super(Logic, self).__init__(model=model, base_model=base_model,
   430     super(GradingProjectLogic, self).__init__(model=model,
   431                                 scope_logic=scope_logic)
   431                                               base_model=base_model,
       
   432                                               scope_logic=scope_logic)
   432 
   433 
   433 class ResultsLogic(work.Logic):
   434 class ResultsLogic(work.Logic):
   434   """Logic methods for the Survey model
   435   """Logic methods for the Survey model
   435   """
   436   """
   436 
   437