Mercurial > bottledash
view modules/web_view/display_issues_techintern.py @ 41:bbd4eab7cb1e
Add .hgignore
author | Gernot Schulz <gernot@intevation.de> |
---|---|
date | Wed, 18 Nov 2015 13:41:42 +0100 |
parents | f89ad628f831 |
children | 8935152f5e19 |
line wrap: on
line source
#!/usr/bin/env python3 """ Fetch issues from a roundup-tracker and save them in a databse. author: Sascha L. Teichmann <sascha.teichmann@intevation.de> author: Bernhard Reiter <bernhard@intevation.de> author: Sean Engelhardt <sean.engelhardt@intevation.de> (c) 2010,2015 by Intevation GmbH This is Free Software unter the terms of the GNU GENERAL PUBLIC LICENSE Version 3 or later. See http://www.gnu.org/licenses/gpl-3.0.txt for details """ import importlib def get_chart(target_div_name): display = importlib.import_module("web_view.display_issues") rcd = importlib.import_module("web_view.roundup_content_data") # print(display_issues.render_db_stats_as_html(roundup_content_data.DATABASE_TECH_INTERN, roundup_content_data.SELECT_ALL)) # print (display.render_db_stats_as_html(rcd.DATABASE_TECH_INTERN, rcd.SELECT_ALL)) html_string = display.render_db_stats_as_html(rcd.DATABASE_TECH_INTERN, rcd.SELECT_ALL) html_string = html_string.replace( 'var d3jsInjectionTarget="X";', 'var d3jsInjectionTarget="' + target_div_name + '";') # print(html_string) return html_string # get_chart();