aboutsummaryrefslogtreecommitdiff
path: root/wqflask/base/JinjaPage.py
diff options
context:
space:
mode:
authorPjotr Prins2015-03-30 10:26:50 +0200
committerPjotr Prins2015-03-30 10:26:50 +0200
commit949d056c60f0b8ff4b9ffedaa08ca12d60e26ddf (patch)
treea34c2c887905d3fe25331a43f77ca41aaf9c7abf /wqflask/base/JinjaPage.py
parent38594c7781b587a24be14b9631a73662ee3fdc2b (diff)
parent67d7d982f96cfd0f3dcb9806ecc6d2f947af9dc9 (diff)
downloadgenenetwork2-949d056c60f0b8ff4b9ffedaa08ca12d60e26ddf.tar.gz
Merge branch 'master' into lmm
Diffstat (limited to 'wqflask/base/JinjaPage.py')
-rwxr-xr-xwqflask/base/JinjaPage.py28
1 files changed, 0 insertions, 28 deletions
diff --git a/wqflask/base/JinjaPage.py b/wqflask/base/JinjaPage.py
deleted file mode 100755
index 07e485b1..00000000
--- a/wqflask/base/JinjaPage.py
+++ /dev/null
@@ -1,28 +0,0 @@
-import logging
-logging.basicConfig(filename="/tmp/gn_log", level=logging.INFO)
-_log = logging.getLogger("search")
-
-from pprint import pformat as pf
-
-import templatePage
-
-from utility import formatting
-
-import jinja2
-JinjaEnv = jinja2.Environment(loader=jinja2.FileSystemLoader('/gnshare/gn/web/webqtl/templates'))
-JinjaEnv.globals['numify'] = formatting.numify
-
-
-class JinjaPage(templatePage.templatePage):
- """Class derived from our regular templatePage, but uses Jinja2 instead.
-
- When converting pages from Python generated templates, change the base class from templatePage
- to JinjaPage
-
- """
-
-
- def write(self):
- """We override the base template write so we can use Jinja2."""
- _log.info(pf(self.__dict__))
- return self.jtemplate.render(**self.__dict__)