comparison modules/web_view/display_issues_techintern.py @ 43:2e2981af7d2d

Use bottledash-specific graph template This version differs from roundup_cc's graph.html in that is not a complete HTML file but a snippet.
author Gernot Schulz <gernot@intevation.de>
date Sun, 31 Jan 2016 15:21:18 +0100
parents 8935152f5e19
children 8449509b7f6f
comparison
equal deleted inserted replaced
42:8935152f5e19 43:2e2981af7d2d
20 os.path.join(os.path.dirname(os.path.realpath(__file__)), 'roundup_cc') 20 os.path.join(os.path.dirname(os.path.realpath(__file__)), 'roundup_cc')
21 ) 21 )
22 22
23 from display_issues import * 23 from display_issues import *
24 24
25 graph = os.path.dirname(os.path.realpath(__file__)) + '/bottledash_graph.html'
26
25 def get_chart(target_div_name): 27 def get_chart(target_div_name):
26 html_string = compile_db_stats_html( 28 html_string = compile_db_stats_html(
27 rcd.DATABASE_TECH_INTERN, 29 rcd.DATABASE_TECH_INTERN,
28 rcd.SELECT_ALL 30 rcd.SELECT_ALL,
31 graph
29 ) 32 )
30 33
31 html_string = html_string.replace( 34 html_string = html_string.replace(
32 'var d3jsInjectionTarget="X";', 'var d3jsInjectionTarget="' + target_div_name + '";') 35 'var d3jsInjectionTarget="X";', 'var d3jsInjectionTarget="' + target_div_name + '";')
33 36
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)