# HG changeset patch # User Madhusudan.C.S # Date 1251300694 -7200 # Node ID e716cd6a6de38225355d718e2a169aabb127b955 # Parent c629e6697cf99c031069f9a79739d33f7507d4e1 GHOPComment Logic is made to inherit from base Logic and made ID based. This matches the recent changes to the GHOP Comment model. Reviewed by: Lennard de Rijk diff -r c629e6697cf9 -r e716cd6a6de3 app/soc/modules/ghop/logic/models/comment.py --- a/app/soc/modules/ghop/logic/models/comment.py Wed Aug 26 17:27:40 2009 +0200 +++ b/app/soc/modules/ghop/logic/models/comment.py Wed Aug 26 17:31:34 2009 +0200 @@ -22,26 +22,25 @@ ] -from soc.logic.models import comment -from soc.logic.models import linkable as linkable_logic +from soc.logic.models import base import soc.models.comment import soc.modules.ghop.models.comment -class Logic(comment.Logic): +class Logic(base.Logic): """Logic methods for the GHOPComment model. """ def __init__(self, model=soc.modules.ghop.models.comment.GHOPComment, base_model=soc.models.comment.Comment, - scope_logic=linkable_logic): + id_based=True): """Defines the name, key_name and model for this entity. """ super(Logic, self).__init__(model, base_model=base_model, - scope_logic=scope_logic) + id_based=id_based) logic = Logic()