taskapp/views/task.py
changeset 222 eeef395a4e02
parent 221 a3de0d3c60a3
child 223 b592ed0b12b1
equal deleted inserted replaced
221:a3de0d3c60a3 222:eeef395a4e02
    66             return show_msg(user, "You are not authorised to upload data to this task", task_url, "view the task")
    66             return show_msg(user, "You are not authorised to upload data to this task", task_url, "view the task")
    67 
    67 
    68         pass
    68         pass
    69     else:
    69     else:
    70         form = WorkReportForm()
    70         form = WorkReportForm()
    71         context.update("form":form)
    71         context.update({"form":form})
    72         return render_to_response('task/report.html', context)
    72         return render_to_response('task/report.html', context)
    73 
    73 
    74 
    74 
    75 def publish_task(request, tid):
    75 def publish_task(request, tid):
    76     """ check if user is the reviewer and also if the task status is UP.
    76     """ check if user is the reviewer and also if the task status is UP.