GHOPComment Logic is made to inherit from base Logic and made ID based.
authorMadhusudan.C.S <madhusudancs@gmail.com>
Wed, 26 Aug 2009 17:31:34 +0200
changeset 2807 e716cd6a6de3
parent 2806 c629e6697cf9
child 2808 0b2d25b1c473
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
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()