comparison modules/roundup_cc/__init__.py @ 12:50f4c64834cb

delegation of dynamic charts works now
author sean
date Tue, 04 Aug 2015 16:00:07 +0200
parents 7a573ec679a6
children 63b9f41c3008
comparison
equal deleted inserted replaced
11:7a573ec679a6 12:50f4c64834cb
12 This is Free Software unter the terms of the 12 This is Free Software unter the terms of the
13 GNU GENERAL PUBLIC LICENSE Version 3 or later. 13 GNU GENERAL PUBLIC LICENSE Version 3 or later.
14 See http://www.gnu.org/licenses/gpl-3.0.txt for details 14 See http://www.gnu.org/licenses/gpl-3.0.txt for details
15 """ 15 """
16 16
17 import roundup_cc.display_issues as display 17 # import re
18 import roundup_cc.roundup_content_data as rcd 18 # import , os
19 19
20 def get_tech_intern_chart(): 20 import importlib
21 return display.render_db_stats_as_html(rcd.DATABASE_TECH_INTERN, rcd.SELECT_ALL) 21
22 # from roundup_cc import *
23
24 # PATH = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
25
26 def make_chart(chart_data_file):
27
28 mod = importlib.import_module("roundup_cc." + chart_data_file)
29 return mod.get_chart()
30
31 # test = exec(open(PATH + "/" + chart_data_file+'.py').read())
32
33 # print(test)
34 # html = eval(chart_data_file+".py")
35 # return html
36 # fp = open(chart_data_file)
37 # contents = fp.read()
38
39 # return exec(chart_data_file.get_chart()
40
41 # def get_tech_intern_chart():
42 # return display.render_db_stats_as_html(rcd.DATABASE_TECH_INTERN, rcd.SELECT_ALL)
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)