app/soc/modules/ghop/logic/models/comment.py
changeset 2807 e716cd6a6de3
parent 2407 e23fce20ad3a
equal deleted inserted replaced
2806:c629e6697cf9 2807:e716cd6a6de3
    20 __authors__ = [
    20 __authors__ = [
    21     '"Madhusudan.C.S" <madhusudancs@gmail.com>'
    21     '"Madhusudan.C.S" <madhusudancs@gmail.com>'
    22   ]
    22   ]
    23 
    23 
    24 
    24 
    25 from soc.logic.models import comment
    25 from soc.logic.models import base
    26 from soc.logic.models import linkable as linkable_logic
       
    27 
    26 
    28 import soc.models.comment
    27 import soc.models.comment
    29 
    28 
    30 import soc.modules.ghop.models.comment
    29 import soc.modules.ghop.models.comment
    31 
    30 
    32 
    31 
    33 class Logic(comment.Logic):
    32 class Logic(base.Logic):
    34   """Logic methods for the GHOPComment model.
    33   """Logic methods for the GHOPComment model.
    35   """
    34   """
    36 
    35 
    37   def __init__(self, model=soc.modules.ghop.models.comment.GHOPComment,
    36   def __init__(self, model=soc.modules.ghop.models.comment.GHOPComment,
    38                base_model=soc.models.comment.Comment,
    37                base_model=soc.models.comment.Comment,
    39                scope_logic=linkable_logic):
    38                id_based=True):
    40     """Defines the name, key_name and model for this entity.
    39     """Defines the name, key_name and model for this entity.
    41     """
    40     """
    42 
    41 
    43     super(Logic, self).__init__(model, base_model=base_model,
    42     super(Logic, self).__init__(model, base_model=base_model,
    44                                 scope_logic=scope_logic)
    43                                 id_based=id_based)
    45 
    44 
    46 
    45 
    47 logic = Logic()
    46 logic = Logic()