Commit 12c4980d authored by Ryan Herbert's avatar Ryan Herbert
Browse files register tags present in sequence_file info field

parent f0b3217c
......@@ -6,6 +6,7 @@ import os
import os.path
import datetime
from controller_utils import error_message
from tag import *
import jstree
import base64
......@@ -202,6 +203,13 @@ def add_form():
group_id = None
for key in id_dict:
group_id = get_set_group(key, id_dict[key])
register_tags(db, 'sequence_file', id, request.vars["file_info"], group_id)
log_message = "upload started"
if request.vars['filename'] != "":
if data['data_file'] is not None:
......@@ -335,11 +343,19 @@ def edit_form():
if request.vars['pre_process'] is not None and request.vars['pre_process'] != "0":
pre_process = int(request.vars['pre_process'])
if request.vars['sampling_date'] != None and request.vars['file_info'] != None :
sequence_file = db.sequence_file[id]
db.sequence_file[id] = dict(sampling_date=request.vars['sampling_date'],
if != request.vars['file_info']:
group_id = None
for key in id_dict:
group_id = get_set_group(key, id_dict[key])
register_tags(db, 'sequence_file', id, request.vars["file_info"], group_id, reset=True)
if request.vars['filename'] != "":
data, filepath = manage_filename(request.vars["filename"])
if 'data_file' in data and data['data_file'] is not None:
Supports Markdown
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