sean@16: #!/usr/bin/env python sean@16: sean@16: """ supplys the data needed to comunicate with the roundup-server, sean@16: and the sqlite database. Represents the types of errors used in roundup. sean@16: sean@16: author: Sascha L. Teichmann sean@16: author: Bernhard Reiter sean@16: author: Sean Engelhardt sean@16: sean@16: (c) 2010,2015 by Intevation GmbH sean@16: sean@16: This is Free Software unter the terms of the sean@16: GNU GENERAL PUBLIC LICENSE Version 3 or later. sean@16: See http://www.gnu.org/licenses/gpl-3.0.txt for details sean@16: """ sean@16: import importlib sean@16: sean@16: def make_chart(chart_data_file, target_div_name): sean@16: mod = importlib.import_module("web_view." + chart_data_file) sean@16: sean@16: return mod.get_chart(target_div_name)