fixed a bug in publish task.
--- 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"
--- 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 @@
<li><a href="/task/view/tid={{a_task.id}}">{{a_task.title}}</a></li>
{% endfor %}
</ul>
- <br /><br />
+ <br />
{% endif %}
{% if mentored_tasks %}
@@ -100,7 +100,7 @@
<li><a href="/task/view/tid={{a_task.id}}">{{a_task.title}}</a></li>
{% endfor %}
</ul>
- <br /><br >
+ <br />
{% endif %}
{% if working_tasks %}
@@ -109,7 +109,7 @@
<li><a href="/task/view/tid={{a_task.id}}">{{a_task.title}}</a></li>
{% endfor %}
</ul>
- <br /><br />
+ <br />
{% endif %}
{% if claimed_tasks %}
@@ -118,7 +118,7 @@
<li><a href="/task/view/tid={{a_task.id}}">{{a_task.title}}</a></li>
{% endfor %}
</ul>
- <br /><br />
+ <br />
{% endif %}
{% endblock %}