Attention une mise à jour du service Gitlab va être effectuée le mardi 18 janvier (et non lundi 17 comme annoncé précédemment) entre 18h00 et 18h30. Cette mise à jour va générer une interruption du service dont nous ne maîtrisons pas complètement la durée mais qui ne devrait pas excéder quelques minutes.

Commit 613d314b authored by Ryan Herbert's avatar Ryan Herbert Committed by Mathieu Giraud
Browse files

SampleSet.py patient.py run.py set tokens in list

See #3533
parent 4b6eac6a
...@@ -21,7 +21,7 @@ class SampleSet(object): ...@@ -21,7 +21,7 @@ class SampleSet(object):
return data['name'] return data['name']
def get_display_name(self, data): def get_display_name(self, data):
return self.get_name(data) return SPAN(self.get_name(data), _class="set_token generic_token")
def get_info(self, data): def get_info(self, data):
return data['info'] return data['info']
......
...@@ -19,7 +19,7 @@ class Patient(SampleSet): ...@@ -19,7 +19,7 @@ class Patient(SampleSet):
return vidjil_utils.anon_names(data['sample_set_id'], data['first_name'], data['last_name'], anon) return vidjil_utils.anon_names(data['sample_set_id'], data['first_name'], data['last_name'], anon)
def get_display_name(self, data, anon=None): def get_display_name(self, data, anon=None):
return vidjil_utils.display_names(data.sample_set_id, data.first_name, data.last_name, anon) return SPAN(vidjil_utils.display_names(data.sample_set_id, data.first_name, data.last_name, anon), _class="set_token patient_token")
def get_birth(self, data): def get_birth(self, data):
return "%s" % str(data['birth']) if data['birth'] is not None else '' return "%s" % str(data['birth']) if data['birth'] is not None else ''
......
...@@ -15,6 +15,9 @@ class Run(SampleSet): ...@@ -15,6 +15,9 @@ class Run(SampleSet):
def get_name(self, data): def get_name(self, data):
return data['name'] return data['name']
def get_display_name(self, data):
return SPAN(self.get_name(data), _class="set_token run_token")
def get_embellished_name(self, data): def get_embellished_name(self, data):
return 'run: %s' % data['name'] return 'run: %s' % data['name']
......
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