Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
613d314b
Commit
613d314b
authored
Oct 15, 2018
by
Ryan Herbert
Committed by
Mathieu Giraud
Oct 15, 2018
Browse files
SampleSet.py patient.py run.py set tokens in list
See
#3533
parent
4b6eac6a
Changes
3
Hide whitespace changes
Inline
Side-by-side
server/web2py/applications/vidjil/models/SampleSet.py
View file @
613d314b
...
...
@@ -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'
]
...
...
server/web2py/applications/vidjil/models/patient.py
View file @
613d314b
...
...
@@ -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
''
...
...
server/web2py/applications/vidjil/models/run.py
View file @
613d314b
...
...
@@ -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'
]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment