annotate modules/web_view/display_issues_techintern.py @ 40:bef9105f2d28

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