app/soc/modules/ghop/logic/models/task.py
changeset 2407 e23fce20ad3a
parent 2401 bf70c5a0ef66
child 2823 21c222535654
equal deleted inserted replaced
2406:6f966e1a80bc 2407:e23fce20ad3a
    24 
    24 
    25 from soc.logic.models import linkable
    25 from soc.logic.models import linkable
    26 
    26 
    27 import soc.models.linkable
    27 import soc.models.linkable
    28 
    28 
    29 from soc.modules.ghop.logic.models import organization as ghop_org_logic
    29 import soc.modules.ghop.logic.models.organization
    30 from soc.modules.ghop.models import task as ghop_task_model
    30 import soc.modules.ghop.models.task
    31 
    31 
    32 
    32 
    33 class Logic(linkable.Logic):
    33 class Logic(linkable.Logic):
    34   """Logic methods for the GHOPTask model.
    34   """Logic methods for the GHOPTask model.
    35   """
    35   """
    36 
    36 
    37   def __init__(self, model=ghop_task_model.GHOPTask,
    37   def __init__(self, model=soc.modules.ghop.models.task.GHOPTask,
    38                base_model=soc.models.linkable.Linkable, 
    38                base_model=soc.models.linkable.Linkable, 
    39                scope_logic=ghop_org_logic):
    39                scope_logic=soc.modules.ghop.logic.models.organization):
    40     """Defines the name, key_name and model for this entity.
    40     """Defines the name, key_name and model for this entity.
    41     """
    41     """
    42 
    42 
    43     super(Logic, self).__init__(model, base_model=base_model,
    43     super(Logic, self).__init__(model, base_model=base_model,
    44                                 scope_logic=scope_logic)
    44                                 scope_logic=scope_logic)