view modules/web_view/__init__.py @ 45:8449509b7f6f

Limit time frame of graph Requires roundup_cc ≥ 99e2e0e17103.
author Gernot Schulz <gernot@intevation.de>
date Sun, 31 Jan 2016 15:32:35 +0100
parents f89ad628f831
children
line wrap: on
line source
#!/usr/bin/env python

""" supplys the data needed to comunicate with the roundup-server,
and the sqlite database. Represents the types of errors used in roundup.

author: Sascha L. Teichmann <sascha.teichmann@intevation.de>
author: Bernhard Reiter <bernhard@intevation.de>
author: Sean Engelhardt <sean.engelhardt@intevation.de>

(c) 2010,2015 by Intevation GmbH

This is Free Software unter the terms of the
GNU GENERAL PUBLIC LICENSE Version 3 or later.
See http://www.gnu.org/licenses/gpl-3.0.txt for details
"""
import importlib

def make_chart(chart_data_file, target_div_name):
    mod = importlib.import_module("web_view." + chart_data_file)

    return mod.get_chart(target_div_name)
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)