Mercurial > repos > eric-rasche > apollo
changeset 4:23ead6905145 draft
planemo upload for repository https://github.com/TAMU-CPT/galaxy-webapollo commit 4ac38d0b6dba1183f3e78eb5c224c7051064b4a5-dirty
author | eric-rasche |
---|---|
date | Thu, 12 Jan 2017 11:53:44 -0500 |
parents | d4ae83dedb14 |
children | 7610987e0c48 |
files | json2iframe.py |
diffstat | 1 files changed, 2 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/json2iframe.py Thu Jan 12 11:52:28 2017 -0500 +++ b/json2iframe.py Thu Jan 12 11:53:44 2017 -0500 @@ -16,12 +16,8 @@ # This is base64 encoded to get past the toolshed's filters. HTML_TPL = """ - PGh0bWw+PGhlYWQ+PHRpdGxlPkVtYmVkZGVkIEFwb2xsbyBBY2Nlc3M8L3RpdGxlPjxzdHlsZSB0 - eXBlPSJ0ZXh0L2NzcyI+Ym9keSB7e21hcmdpbjogMDt9fSBpZnJhbWUge3tib3JkZXI6IDA7d2lk - dGg6IDEwMCU7aGVpZ2h0OiAxMDAlfX08L3N0eWxlPjwvaGVhZD48Ym9keT48aWZyYW1lIHNyYz0i - e2Jhc2VfdXJsfS9hbm5vdGF0b3IvbG9hZExpbms/bG9jPXtjaHJvbX0mb3JnYW5pc209e29yZ0lk - fSZ0cmFja2xpc3Q9MSI+PC9pZnJhbWU+PC9ib2R5PjwvaHRtbD4K +<html><head><title>Embedded Apollo Access</title><style type="text/css">body {{margin: 0;}} iframe {{border: 0;width: 100%;height: 100%}}</style></head><body><iframe src="{base_url}/annotator/loadLink?loc={chrom}&organism={orgId}&tracklist=1"></iframe></body></html> """ - HTML_TPL = base64.b64decode(HTML_TPL.replace('\n', '')) + # HTML_TPL = base64.b64decode(HTML_TPL.replace('\n', '')) print HTML_TPL.format(base_url=args.external_apollo_url, chrom="", orgId=data[0]['id'])