annotate modules/web_view/__init__.py @ 22:3dfa9ed1dd8b

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