diff modules/web_view/display_issues_techintern.py @ 42:8935152f5e19

Remove roundup_cc fork; import from embedded roundup_cc clone
author Gernot Schulz <gernot@intevation.de>
date Sun, 31 Jan 2016 13:18:51 +0100
parents f89ad628f831
children 2e2981af7d2d
line wrap: on
line diff
--- a/modules/web_view/display_issues_techintern.py	Wed Nov 18 13:41:42 2015 +0100
+++ b/modules/web_view/display_issues_techintern.py	Sun Jan 31 13:18:51 2016 +0100
@@ -13,20 +13,24 @@
 See http://www.gnu.org/licenses/gpl-3.0.txt for details
 """
 
-import importlib
+from sys import path
+import os
+
+path.append(
+        os.path.join(os.path.dirname(os.path.realpath(__file__)), 'roundup_cc')
+    )
+
+from display_issues import *
 
 def get_chart(target_div_name):
-    display = importlib.import_module("web_view.display_issues")
-    rcd = importlib.import_module("web_view.roundup_content_data")
-    # print(display_issues.render_db_stats_as_html(roundup_content_data.DATABASE_TECH_INTERN, roundup_content_data.SELECT_ALL))
-    # print (display.render_db_stats_as_html(rcd.DATABASE_TECH_INTERN, rcd.SELECT_ALL))
-    html_string = display.render_db_stats_as_html(rcd.DATABASE_TECH_INTERN, rcd.SELECT_ALL)
+    html_string = compile_db_stats_html(
+        rcd.DATABASE_TECH_INTERN,
+        rcd.SELECT_ALL
+    )
 
     html_string = html_string.replace(
         'var d3jsInjectionTarget="X";', 'var d3jsInjectionTarget="' + target_div_name + '";')
 
-    # print(html_string)
-
     return html_string
 
-# get_chart();
+# print(get_chart('techintern'))
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)