Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
clinicaltrials
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
david Chavalarias
clinicaltrials
Commits
9fd097ad
Commit
9fd097ad
authored
Mar 03, 2017
by
Romain Loth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor changes
parent
7d56227c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
24 deletions
+29
-24
main.py
services/main.py
+4
-1
profile.html
templates/profile.html
+25
-23
No files found.
services/main.py
View file @
9fd097ad
...
...
@@ -117,7 +117,7 @@ SOURCE_FIELDS = [
# NB password values have already been sent by ajax to Doors
# mandatory minimum of keywords
# TODO use
# mandatory minimum of keywords
MIN_KW
=
5
# ============= context =============
...
...
@@ -889,6 +889,9 @@ def read_record_from_request(request):
# replace str by array
clean_records
[
tok_field
]
=
temp_array
if
tok_field
==
'keywords'
and
len
(
temp_array
)
<
MIN_KW
:
mlog
(
'WARNING'
,
'only
%
i keywords instead of
%
i'
%
(
len
(
temp_array
),
MIN_KW
))
# special treatment for pic_file
if
hasattr
(
request
,
"files"
)
and
'pic_file'
in
request
.
files
and
request
.
files
[
'pic_file'
]:
new_fname
=
tools
.
pic_blob_to_filename
(
request
.
files
[
'pic_file'
])
...
...
templates/profile.html
View file @
9fd097ad
...
...
@@ -626,6 +626,7 @@
<div
class=
"row"
>
<div
class=
"spacer col-lg-2 col-md-1 hidden-sm-down"
>
</div>
<div
class=
"my-centering-box col-lg-8 col-md-10 col-sm-12"
>
<div>
<h3
class=
"formcat"
>
About your data
</h3>
<div
class=
"cartouche"
id=
"cnil_warning"
>
<p>
Les informations recueillies à partir de ce formulaire font l’objet d’un traitement
...
...
@@ -651,6 +652,7 @@
</p>
</div>
</div>
</div>
<div
class=
"spacer col-lg-2 col-md-1 hidden-sm-down"
>
</div>
</div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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