Provide convenience attribute for logging in IE mako.

This commit is contained in:
John Chilton
2015-04-02 08:54:56 -04:00
parent be8217d8ce
commit 543eb5b489
2 changed files with 5 additions and 0 deletions
@@ -35,6 +35,7 @@ notebook_access_url = ie_request.url_template('${PROXY_URL}/ipython/${PORT}/note
notebook_login_url = ie_request.url_template('${PROXY_URL}/ipython/${PORT}/login?next=%2Fipython%2F${PORT}%2Ftree')
docker_cmd = ie_request.docker_cmd(temp_dir)
ie_request.log.info("Starting IPython docker container with command [%s]" % docker_cmd)
subprocess.call(docker_cmd, shell=True)
%>
<html>
@@ -11,6 +11,9 @@ eggs.require("PyYAML")
import yaml
from galaxy.managers import api_keys
import logging
log = logging.getLogger(__name__)
class InteractiveEnviornmentRequest(object):
@@ -18,6 +21,7 @@ class InteractiveEnviornmentRequest(object):
plugin_config = plugin.config
self.trans = trans
self.log = log
self.attr = Bunch()
self.attr.viz_id = plugin_config["name"].lower()