Attention une mise à jour du serveur va être effectuée le lundi 17 mai entre 13h et 13h30. Cette mise à jour va générer une interruption du service de quelques minutes.

Commit d27a5317 authored by Marc Duez's avatar Marc Duez

server : save sequence file provider / patient creator

parent 8542fe7d
......@@ -55,7 +55,8 @@ def add_form():
sequencer=request.vars['sequencer'],
producer=request.vars['producer'],
patient_id=request.vars['patient_id'],
filename=request.vars['filename'])
filename=request.vars['filename'],
provider=auth.user_id)
res = {"file_id" : id,
"message": request.vars['filename'] + ": upload started",
......@@ -104,7 +105,8 @@ def edit_form():
pcr=request.vars['pcr'],
sequencer=request.vars['sequencer'],
producer=request.vars['producer'],
filename=filename)
filename=filename,
provider=auth.user_id)
patient_id = db.sequence_file[request.vars["id"]].patient_id
......
......@@ -6,7 +6,12 @@ if request.env.http_origin:
## return user list
def index():
return dict(message=T('user list'))
query = db(db.auth_user).select()
for row in query :
row.created_patient = db( db.patient.creator == row.id ).count()
return dict(query=query)
## return user information
## need ["id"]
......
......@@ -94,6 +94,7 @@ db.define_table('patient',
Field('birth','date'),
Field('info','text'),
Field('id_label','string'),
Field('creator','reference auth_user')
)
'''
......
{{extend 'db_layout.html'}}
{{('message' in globals())}}
{{if 'message' in globals():}}
{{
count = db.auth_group.id.count()
query = db(
db.auth_user
).select()
}}
<div>
<h3>{{=message}}</h3>
<h3>User info</h3>
<div id="db_table_container">
<table class="db_table" id="table">
<thead>
<tr><td class="column1"> user name</td>
<td> @</td>
<td class="colum1">created patient</td>
</tr>
</thead>
......@@ -27,6 +16,7 @@ query = db(
<tr onclick="db.call('user/info', {'id' :'{{=row.id}}'} )">
<td> {{=row.first_name + " " + row.last_name }} </td>
<td> {{=row.email}} </td>
<td> {{=row.created_patient}} </td>
</tr>
{{pass}}
......
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