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 8a2b182a authored by Ryan Herbert's avatar Ryan Herbert, sample_set/custom.html fix issues with helper instance

there were a couple issues with calls to in non-existant helper
instance, so now we have an instance to work with
parent 277b72ac
......@@ -334,7 +334,11 @@ def custom():
request.vars["custom_list"] = [request.vars["custom_list"]]
myGroupBy = None
helper = None
if request.vars["id"] and auth.can_view_sample_set(request.vars["id"]):
sample_set = db.sample_set[request.vars["id"]]
factory = ModelFactory()
helper = factory.get_instance(type=sample_set.sample_type)
q = ((auth.vidjil_accessible_query(PermissionEnum.read_config.value, db.config))
& ( == request.vars["id"])
& (db.sample_set_membership.sample_set_id ==
......@@ -403,7 +407,8 @@ def custom():
return dict(query=query,
def confirm():
if auth.can_modify_sample_set(request.vars["id"]):
......@@ -6,7 +6,7 @@
{{ if request.vars['id']: }}
<h3>Compare samples from {{=helper.get_type_display()}} {{=helper.get_name(request.vars['id'])}}</h3>
<h3>Compare samples from {{=helper.get_type_display()}} {{=get_sample_name(request.vars["id"])}}</h3>
{{ else: }}
<h3>Compare samples</h3>
......@@ -50,7 +50,7 @@
<table class="db_table table_compare" id="table">
<tr><td class="column5"> </td>
<td class="column_200"> {{=helper.get_type_display()}} </td>
<td class="column_200"> {{=helper.get_type_display() if helper is not None else "name"}} </td>
<td class="column_200"> file name </td>
<td class="column_100"> sampling date </td>
<td> info </td>
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