Commit f5e3453e authored by Mathieu Giraud's avatar Mathieu Giraud Committed by Vidjil Team

patient.py: isolate next_patient()

parent f96e4396
......@@ -10,10 +10,13 @@ if request.env.http_origin:
ACCESS_DENIED = "access denied"
## return patient file list
##
def info():
##
##
def next_patient():
'''
Process request, possibly changing request.vars['id'] depending on request.vars['next']
'''
if 'next' in request.vars:
try:
current_id = request.vars["id"]
......@@ -27,6 +30,11 @@ def info():
except:
pass
## return patient file list
##
def info():
next_patient()
patient = db.patient[request.vars["id"]]
if request.vars["config_id"] and request.vars["config_id"] != "-1" :
......
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