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
72073828
Commit
72073828
authored
Nov 25, 2016
by
Romain Loth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove direct calls to templating system (render_template does them for us)
parent
9bd0ef7e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
13 deletions
+0
-13
server_comex_registration.py
server_comex_registration.py
+0
-13
No files found.
server_comex_registration.py
View file @
72073828
...
...
@@ -19,8 +19,6 @@ __status__ = "Dev"
from
flask
import
Flask
,
render_template
,
request
from
ctypes
import
c_int32
# from time import sleep
from
jinja2
import
Template
,
Environment
,
FileSystemLoader
from
MySQLdb
import
connect
,
ProgrammingError
from
re
import
sub
from
os
import
environ
...
...
@@ -37,10 +35,6 @@ app = Flask(__name__)
app
.
config
[
'DEBUG'
]
=
MY_DEBUG_FLAG
# templating setup
templating_env
=
Environment
(
loader
=
FileSystemLoader
(
'templates'
),
autoescape
=
False
)
########### PARAMS ###########
# all columns as they are declared in form & DB as tuple:
...
...
@@ -155,13 +149,6 @@ def re_hash(userinput, salt="verylonverylongverylonverylongverylonverylong"):
return
hashk
def
get_template
(
filename
):
"""
Retrieve a jinja2 template from templates
£TODO: check if necessary in server context ?
"""
return
templating_env
.
get_template
(
filename
)
def
sanitize
(
value
):
"""
...
...
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