# HG changeset patch # User nishanth # Date 1267574672 -19800 # Node ID 8f5fb15ffd9bd73b02176508a6963e4e6de6ffc5 # Parent e4e73a4dd720f0be10829f3d873158405380c76d fixed a bug in publish task. diff -r e4e73a4dd720 -r 8f5fb15ffd9b taskapp/events/task.py --- a/taskapp/events/task.py Wed Mar 03 05:30:53 2010 +0530 +++ b/taskapp/events/task.py Wed Mar 03 05:34:32 2010 +0530 @@ -8,12 +8,13 @@ def publishTask(task, rem_mentors=True, rem_comments=True): """ set the task status to open """ - if task.sub_type == 'D': - deps, subs = task.map_subs.all(), [] - else: - subs, deps = task.map_subs.all(), [] + # if task.sub_type == 'D': + # deps, subs = task.map_subs.all(), [] + #else: + # subs, deps = task.map_subs.all(), [] - if subs or any(map(lambda t:t.status!="CM",deps)): + task = getTask(task.id) + if task.subs or any(map(lambda t:t.status!="CM",task.deps)): task.status = "LO" else: task.status = "OP" diff -r e4e73a4dd720 -r 8f5fb15ffd9b templates/index.html --- a/templates/index.html Wed Mar 03 05:30:53 2010 +0530 +++ b/templates/index.html Wed Mar 03 05:34:32 2010 +0530 @@ -91,7 +91,7 @@