comparison display_issues_demo.py @ 20:3bb3d9a9f1b7

Filter by keywords and states. Configuration via configuration file. "No prio" grapf is displayed. (./display_issues_demo.py is not yet dynamic, it needs all states)
author Magnus Schieder <mschieder@intevation.de>
date Mon, 22 Oct 2018 16:49:58 +0200
parents adca5b3780d2
children 7a523e13fcb3
comparison
equal deleted inserted replaced
19:8ffd584065a4 20:3bb3d9a9f1b7
10 10
11 This is Free Software unter the terms of the 11 This is Free Software unter the terms of the
12 GNU GENERAL PUBLIC LICENSE Version 3 or later. 12 GNU GENERAL PUBLIC LICENSE Version 3 or later.
13 See http://www.gnu.org/licenses/gpl-3.0.txt for details 13 See http://www.gnu.org/licenses/gpl-3.0.txt for details
14 """ 14 """
15 import configparser
16 from display_issues import *
15 17
16 from display_issues import * 18 config = configparser.ConfigParser()
19 config.read('config3.ini')
20
21 keywords = config.get("SEARCH", "Keywords", fallback="")
22 status = config.get("SEARCH", "Status", fallback="")
23 columns = config.get("SEARCH", "Columns", fallback="critical, urgent, bug, feature, wish")
24 noPrio = config.get("SEARCH", "IncludeNoPrio", fallback=False)
25 if noPrio:
26 columns += ", None"
17 27
18 cgitb.enable() # (optional) HTML traceback to browser 28 cgitb.enable() # (optional) HTML traceback to browser
19 #render_db_stats_as_html("./demo1.db", rcd.SELECT_ALL) 29 #render_db_stats_as_html("./demo1.db", rcd.SELECT_ALL)
20 render_db_stats_as_html("./demo1.db", 30 render_db_stats_as_html("./demo3.db",
21 rcd.SELECT_WHERE.format("timestamp > date('now', '-2 month')")) 31 rcd.build_sql_select(columns).format("timestamp > date('now', '-2 month')"),
32 status, keywords)
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)