comparison modules/web_view/display_issues_techintern.py @ 42:8935152f5e19

Remove roundup_cc fork; import from embedded roundup_cc clone
author Gernot Schulz <gernot@intevation.de>
date Sun, 31 Jan 2016 13:18:51 +0100
parents f89ad628f831
children 2e2981af7d2d
comparison
equal deleted inserted replaced
41:bbd4eab7cb1e 42:8935152f5e19
11 This is Free Software unter the terms of the 11 This is Free Software unter the terms of the
12 GNU GENERAL PUBLIC LICENSE Version 3 or later. 12 GNU GENERAL PUBLIC LICENSE Version 3 or later.
13 See http://www.gnu.org/licenses/gpl-3.0.txt for details 13 See http://www.gnu.org/licenses/gpl-3.0.txt for details
14 """ 14 """
15 15
16 import importlib 16 from sys import path
17 import os
18
19 path.append(
20 os.path.join(os.path.dirname(os.path.realpath(__file__)), 'roundup_cc')
21 )
22
23 from display_issues import *
17 24
18 def get_chart(target_div_name): 25 def get_chart(target_div_name):
19 display = importlib.import_module("web_view.display_issues") 26 html_string = compile_db_stats_html(
20 rcd = importlib.import_module("web_view.roundup_content_data") 27 rcd.DATABASE_TECH_INTERN,
21 # print(display_issues.render_db_stats_as_html(roundup_content_data.DATABASE_TECH_INTERN, roundup_content_data.SELECT_ALL)) 28 rcd.SELECT_ALL
22 # print (display.render_db_stats_as_html(rcd.DATABASE_TECH_INTERN, rcd.SELECT_ALL)) 29 )
23 html_string = display.render_db_stats_as_html(rcd.DATABASE_TECH_INTERN, rcd.SELECT_ALL)
24 30
25 html_string = html_string.replace( 31 html_string = html_string.replace(
26 'var d3jsInjectionTarget="X";', 'var d3jsInjectionTarget="' + target_div_name + '";') 32 'var d3jsInjectionTarget="X";', 'var d3jsInjectionTarget="' + target_div_name + '";')
27 33
28 # print(html_string)
29
30 return html_string 34 return html_string
31 35
32 # get_chart(); 36 # print(get_chart('techintern'))
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)