23 |
23 |
24 from soc.logic.models import linkable |
24 from soc.logic.models import linkable |
25 |
25 |
26 import soc.models.linkable |
26 import soc.models.linkable |
27 |
27 |
28 from soc.modules.ghop.logic.models import organization as ghop_org_logic |
28 import soc.modules.ghop.logic.models.organization |
29 from soc.modules.ghop.models import work_submission as \ |
29 import soc.modules.ghop.models.work_submission |
30 ghop_work_submission_model |
|
31 |
30 |
32 |
31 |
33 class Logic(linkable.Logic): |
32 class Logic(linkable.Logic): |
34 """Logic methods for the GHOPWorkSubmission model. |
33 """Logic methods for the GHOPWorkSubmission model. |
35 """ |
34 """ |
36 |
35 |
37 def __init__(self, model=ghop_work_submission_model.GHOPWorkSubmission, |
36 def __init__( |
38 base_model=soc.models.linkable.Linkable, |
37 self, |
39 scope_logic=ghop_org_logic): |
38 model=soc.modules.ghop.models.work_submission.GHOPWorkSubmission, |
|
39 base_model=soc.models.linkable.Linkable, |
|
40 scope_logic=soc.modules.ghop.logic.models.organization): |
40 """Defines the name, key_name and model for this entity. |
41 """Defines the name, key_name and model for this entity. |
41 """ |
42 """ |
42 |
43 |
43 super(Logic, self).__init__(model, base_model=base_model, |
44 super(Logic, self).__init__(model, base_model=base_model, |
44 scope_logic=scope_logic) |
45 scope_logic=scope_logic) |