app/soc/modules/ghop/logic/models/task.py
changeset 3059 14421976288a
parent 2979 ba4aeaaad0a1
child 3080 30a33926ab91
--- a/app/soc/modules/ghop/logic/models/task.py	Sun Oct 25 21:53:04 2009 -0700
+++ b/app/soc/modules/ghop/logic/models/task.py	Sun Oct 25 22:19:41 2009 -0700
@@ -160,8 +160,9 @@
       silent: iff True does not call post store methods.
     """
 
-    from soc.modules.ghop.logic.models import comment as ghop_comment_logic
-    from soc.modules.ghop.logic.models import work_submission as \
+    from soc.modules.ghop.logic.models.comment import logic as \
+        ghop_comment_logic
+    from soc.modules.ghop.logic.models.work_submission import logic as \
         ghop_work_submission_logic
     from soc.modules.ghop.models import comment as ghop_comment_model
     from soc.modules.ghop.models import work_submission as \
@@ -199,7 +200,7 @@
     if not silent:
       # call the _onCreate methods for the Comment and WorkSubmission
       if comment_entity:
-        ghop_comment_logic.logic._onCreate(comment_entity)
+        ghop_comment_logic._onCreate(comment_entity)
 
       if ws_entity:
         ghop_work_submission_logic._onCreate(ws_entity)
@@ -262,16 +263,17 @@
     For args see base.getFromKeyFieldsOr404().
     """
 
-    from soc.modules.ghop.logic.models import comment as ghop_comment_logic
-    from soc.modules.ghop.logic.models import work_submission as \
+    from soc.modules.ghop.logic.models.comment import logic as \
+        ghop_comment_logic
+    from soc.modules.ghop.logic.models.work_submission import logic as \
         ghop_work_submission_logic
  
     entity = self.getFromKeyFieldsOr404(fields)
 
-    comment_entities = ghop_comment_logic.logic.getForFields(
+    comment_entities = ghop_comment_logic.getForFields(
         ancestors=[entity], order=['created_on'])
 
-    ws_entities = ghop_work_submission_logic.logic.getForFields(
+    ws_entities = ghop_work_submission_logic.getForFields(
         ancestors=[entity], order=['submitted_on'])
 
     return entity, comment_entities, ws_entities