comparison modules/web_view/display_issues_techintern.py @ 16:f89ad628f831

adding the renamed files
author sean
date Wed, 05 Aug 2015 13:33:15 +0200
parents
children 8935152f5e19
comparison
equal deleted inserted replaced
15:82d66f4488cd 16:f89ad628f831
1 #!/usr/bin/env python3
2
3 """ Fetch issues from a roundup-tracker and save them in a databse.
4
5 author: Sascha L. Teichmann <sascha.teichmann@intevation.de>
6 author: Bernhard Reiter <bernhard@intevation.de>
7 author: Sean Engelhardt <sean.engelhardt@intevation.de>
8
9 (c) 2010,2015 by Intevation GmbH
10
11 This is Free Software unter the terms of the
12 GNU GENERAL PUBLIC LICENSE Version 3 or later.
13 See http://www.gnu.org/licenses/gpl-3.0.txt for details
14 """
15
16 import importlib
17
18 def get_chart(target_div_name):
19 display = importlib.import_module("web_view.display_issues")
20 rcd = importlib.import_module("web_view.roundup_content_data")
21 # print(display_issues.render_db_stats_as_html(roundup_content_data.DATABASE_TECH_INTERN, roundup_content_data.SELECT_ALL))
22 # print (display.render_db_stats_as_html(rcd.DATABASE_TECH_INTERN, rcd.SELECT_ALL))
23 html_string = display.render_db_stats_as_html(rcd.DATABASE_TECH_INTERN, rcd.SELECT_ALL)
24
25 html_string = html_string.replace(
26 'var d3jsInjectionTarget="X";', 'var d3jsInjectionTarget="' + target_div_name + '";')
27
28 # print(html_string)
29
30 return html_string
31
32 # get_chart();
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)