equal
deleted
inserted
replaced
403 entity.put() |
403 entity.put() |
404 |
404 |
405 # return the scope |
405 # return the scope |
406 return entity.scope |
406 return entity.scope |
407 |
407 |
|
408 class ProjectLogic(Logic): |
|
409 """Logic class for ProjectSurvey. |
|
410 """ |
|
411 |
|
412 def __init__(self, model=ProjectSurvey, |
|
413 base_model=None, scope_logic=None): |
|
414 """Defines the name, key_name and model for this entity. |
|
415 """ |
|
416 |
|
417 super(Logic, self).__init__(model=model, base_model=base_model, |
|
418 scope_logic=scope_logic) |
|
419 |
|
420 |
|
421 class GradingProjectLogic(ProjectLogic): |
|
422 """Logic class for GradingProjectSurvey |
|
423 """ |
|
424 |
|
425 def __init__(self, model=GradingProjectSurvey, |
|
426 base_model=None, scope_logic=None): |
|
427 """Defines the name, key_name and model for this entity. |
|
428 """ |
|
429 |
|
430 super(Logic, self).__init__(model=model, base_model=base_model, |
|
431 scope_logic=scope_logic) |
|
432 |
408 |
433 |
409 logic = Logic() |
434 logic = Logic() |
410 # TODO separate project and grading logic into own class to overwrite methods |
435 project_logic = ProjectLogic() |
411 project_logic = Logic(model=ProjectSurvey) |
436 grading_logic = GradingProjectLogic() |
412 grading_logic = Logic(model=GradingProjectSurvey) |
|