21 '"Sverre Rabbelier" <sverre@rabbelier.nl>', |
21 '"Sverre Rabbelier" <sverre@rabbelier.nl>', |
22 '"Lennard de Rijk" <ljvderijk@gmail.com>', |
22 '"Lennard de Rijk" <ljvderijk@gmail.com>', |
23 ] |
23 ] |
24 |
24 |
25 |
25 |
26 from soc.logic.models import tossed |
26 from soc.logic.models import presence_with_tos |
27 from soc.logic.models import tossed as tossed_logic |
27 from soc.logic.models import presence_with_tos as tos_logic |
28 |
28 |
29 import gsoc.logic.models.timeline |
29 import gsoc.logic.models.timeline |
30 import soc.logic.models.timeline |
30 import soc.logic.models.timeline |
31 import soc.models.program |
31 import soc.models.program |
32 |
32 |
33 |
33 |
34 class Logic(tossed.Logic): |
34 class Logic(presence_with_tos.Logic): |
35 """Logic methods for the Program model. |
35 """Logic methods for the Program model. |
36 """ |
36 """ |
37 |
37 |
38 TIMELINE_LOGIC = {'gsoc' : gsoc.logic.models.timeline.logic, |
38 TIMELINE_LOGIC = {'gsoc' : gsoc.logic.models.timeline.logic, |
39 'ghop' : soc.logic.models.timeline.logic} |
39 'ghop' : soc.logic.models.timeline.logic} |
40 |
40 |
41 def __init__(self, model=soc.models.program.Program, |
41 def __init__(self, model=soc.models.program.Program, |
42 base_model=None, scope_logic=tossed_logic): |
42 base_model=None, scope_logic=tos_logic): |
43 """Defines the name, key_name and model for this entity. |
43 """Defines the name, key_name and model for this entity. |
44 """ |
44 """ |
45 |
45 |
46 super(Logic, self).__init__(model=model, base_model=base_model, |
46 super(Logic, self).__init__(model=model, base_model=base_model, |
47 scope_logic=scope_logic) |
47 scope_logic=scope_logic) |