Commit d6ee5f77 authored by Mikaël Salson's avatar Mikaël Salson
Browse files

controllers/ Document what parameters are expected for the function.

This should be the norm, not the exception
parent aba3e41a
......@@ -165,6 +165,12 @@ def upload():
def confirm():
Request parameters:
\param delete_results: (optional) boolean
\param id: sequence file ID
\param patient_id: patient id
delete_only_sequence = ('delete_only_sequence' in request.vars and request.vars['delete_only_sequence'] == 'True')
delete_results = ('delete_results' in request.vars and request.vars['delete_results'] == 'True')
sequence_file = db.sequence_file[request.vars['id']]
......@@ -189,6 +195,12 @@ def delete_sequence_file(seq_id):
return error_message('you need admin permission to delete this file')
def delete():
Called (via request) with:
\param: id (the sequence ID)
\param: patient_id
\param: delete_results: (optional) boolean stating if we also want to delete the results.
patient_id = request.vars["patient_id"]
delete_results = ('delete_results' in request.vars and request.vars['delete_results'] == 'True')
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment