aboutsummaryrefslogtreecommitdiff
path: root/wqflask/base/JinjaPage.py
diff options
context:
space:
mode:
authorLei Yan2015-05-12 20:47:50 +0000
committerLei Yan2015-05-12 20:47:50 +0000
commitcb5684aa004d59585167804450f64ab74d3a3412 (patch)
tree31aedac7d1fd945c893f07e2e419b4361f00925b /wqflask/base/JinjaPage.py
parentd11b71790f5f7c7eb9fe41704e1df7d8447371c9 (diff)
parentf228118ac112f3ebab5faf41ac9e1bc2a6e2c0fa (diff)
downloadgenenetwork2-cb5684aa004d59585167804450f64ab74d3a3412.tar.gz
Merge https://github.com/genenetwork/genenetwork2
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__)