diff options
author | Florian Weimer <fw@deneb.enyo.de> | 2006-05-20 17:08:37 +0000 |
---|---|---|
committer | Florian Weimer <fw@deneb.enyo.de> | 2006-05-20 17:08:37 +0000 |
commit | 1403285e0cf22da37dd52bf01163ed2441877a0c (patch) | |
tree | 7d378fa968b35a291a998e724235d08d03801ecd /lib | |
parent | 3692f87d698b62da86124d88409c4c8a59b7fa16 (diff) |
* lib/python/security_db.py (DB.getTODOs):
Add hide_check parameter.
* bin/tracker_service.py (TrackerService.page_status_todo):
Use it.
git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@4005 e39458fd-73e7-0310-bf30-c45bca0a0e42
Diffstat (limited to 'lib')
-rw-r--r-- | lib/python/security_db.py | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/lib/python/security_db.py b/lib/python/security_db.py index 22c833f684..e38bb174a3 100644 --- a/lib/python/security_db.py +++ b/lib/python/security_db.py @@ -1807,15 +1807,25 @@ class DB: AND bugs.name = st.bug_name ORDER BY bugs.name""", (pkg,)) - def getTODOs(self, cursor=None): + def getTODOs(self, cursor=None, hide_check=False): """Returns a list of pairs (BUG-NAME, DESCRIPTION).""" if cursor is None: cursor = self.cursor() - return cursor.execute( - """SELECT DISTINCT bugs.name, bugs.description - FROM bugs_notes, bugs - WHERE bugs_notes.typ = 'TODO' AND bugs.name = bugs_notes.bug_name - ORDER BY name """) + if hide_check: + return cursor.execute( + """SELECT DISTINCT bugs.name, bugs.description + FROM bugs_notes, bugs + WHERE bugs_notes.typ = 'TODO' + AND bugs_notes.comment <> 'check' + AND bugs.name = bugs_notes.bug_name + ORDER BY name """) + else: + return cursor.execute( + """SELECT DISTINCT bugs.name, bugs.description + FROM bugs_notes, bugs + WHERE bugs_notes.typ = 'TODO' + AND bugs.name = bugs_notes.bug_name + ORDER BY name """) def getBugXrefs(self, cursor, bug): """Returns a generator for a list of bug names. The listed |