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

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

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