16
|
1 #!/usr/bin/env python |
|
2 |
|
3 """ supplys the data needed to comunicate with the roundup-server, |
|
4 and the sqlite database. Represents the types of errors used in roundup. |
|
5 |
|
6 author: Sascha L. Teichmann <sascha.teichmann@intevation.de> |
|
7 author: Bernhard Reiter <bernhard@intevation.de> |
|
8 author: Sean Engelhardt <sean.engelhardt@intevation.de> |
|
9 |
|
10 (c) 2010,2015 by Intevation GmbH |
|
11 |
|
12 This is Free Software unter the terms of the |
|
13 GNU GENERAL PUBLIC LICENSE Version 3 or later. |
|
14 See http://www.gnu.org/licenses/gpl-3.0.txt for details |
|
15 """ |
|
16 import importlib |
|
17 |
|
18 def make_chart(chart_data_file, target_div_name): |
|
19 mod = importlib.import_module("web_view." + chart_data_file) |
|
20 |
|
21 return mod.get_chart(target_div_name) |