diff options
author | zsloan | 2015-03-26 21:24:24 +0000 |
---|---|---|
committer | zsloan | 2015-03-26 21:24:24 +0000 |
commit | a840ad18e1fe3db98a359a159e9b9b72367a2839 (patch) | |
tree | ed9e75b5e32306ee7994fcc0d3e017cc75322251 /wqflask/base/JinjaPage.py | |
parent | 93dcba89f7e424a759e3177a74b1ce322cdd7c57 (diff) | |
download | genenetwork2-a840ad18e1fe3db98a359a159e9b9b72367a2839.tar.gz |
Removed several unused files from the base folder and their references in other files
Diffstat (limited to 'wqflask/base/JinjaPage.py')
-rwxr-xr-x | wqflask/base/JinjaPage.py | 28 |
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__) |