diff display_issues.py @ 7:99e2e0e17103

Adding possibility and example to filter the entries.
author Bernhard Reiter <bernhard@intevation.de>
date Tue, 01 Dec 2015 09:02:35 +0100
parents 99c68ebfb3b9
children 149d01f43e31
line wrap: on
line diff
--- a/display_issues.py	Tue Dec 01 09:01:52 2015 +0100
+++ b/display_issues.py	Tue Dec 01 09:02:35 2015 +0100
@@ -14,12 +14,7 @@
 
 
 ##Usage Example: ##
-
-from display_issues import *
-cgitb.enable() # (optional) HTML traceback to browser
-print("Content-Type: text/html")
-print()
-render_db_stats_as_html(rcd.DATABASE_DEMO, rcd.SELECT_ALL)
+see display_issues_demo.py or __main__ section below.
 """
 
 import sqlite3 as db
@@ -94,7 +89,8 @@
 
 if __name__ == '__main__':
     cgitb.enable()
-    print("Content-Type: text/html")
-    print()
+    #spit out HTML file directly, thus no need to give headers to the server
+    #print("Content-Type: text/html")
+    #print()
 
     render_db_stats_as_html(rcd.DATABASE_DEMO, rcd.SELECT_ALL)
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)