[Reportbug-commits] r598 - in trunk (3 files)

morph-guest at users.alioth.debian.org morph-guest at users.alioth.debian.org
Sat Aug 16 13:23:31 UTC 2008


    Date: Saturday, August 16, 2008 @ 13:23:29
  Author: morph-guest
Revision: 598

new release: added get_password to urwid ui; remove cruft from BTS parsing code

Modified:
  trunk/debian/changelog
  trunk/reportbuglib/debianbts.py
  trunk/reportbuglib/reportbug_ui_urwid.py

Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog	2008-08-06 21:54:42 UTC (rev 597)
+++ trunk/debian/changelog	2008-08-16 13:23:29 UTC (rev 598)
@@ -1,3 +1,14 @@
+reportbug (3.45) unstable; urgency=low
+
+  * reportbuglib/reportbug_ui_urwid.py
+    - added get_password function; thanks to Torsten Wiebke and Jan Muszynski
+      for the reports; Closes: #494509, #491328
+  * reportbuglib/debianbts.py
+    - added removal of cruft from BTS parsed page; thanks to Davide Prina, Dan
+      Greene and Paul Menzel for the reports; Closes: #494545, #495018, #495050
+
+ -- Sandro Tosi <matrixhasu at gmail.com>  Sat, 16 Aug 2008 15:20:38 +0200
+
 reportbug (3.44) unstable; urgency=medium
 
   [ Chris Lawrence ]

Modified: trunk/reportbuglib/debianbts.py
===================================================================
--- trunk/reportbuglib/debianbts.py	2008-08-06 21:54:42 UTC (rev 597)
+++ trunk/reportbuglib/debianbts.py	2008-08-16 13:23:29 UTC (rev 598)
@@ -911,6 +911,12 @@
     # Reorganize hierarchy to put recently-fixed bugs at top
     parser.reorganize()
 
+    # Morph @ 2008-08-15; due to BTS output format changes
+    try:
+        parser.hierarchy.remove(('Select bugs', []))
+    except:
+        pass
+
     data = (parser.bugcount, parser.title, parser.hierarchy)
     del parser
 

Modified: trunk/reportbuglib/reportbug_ui_urwid.py
===================================================================
--- trunk/reportbuglib/reportbug_ui_urwid.py	2008-08-06 21:54:42 UTC (rev 597)
+++ trunk/reportbuglib/reportbug_ui_urwid.py	2008-08-16 13:23:29 UTC (rev 598)
@@ -27,7 +27,7 @@
 
 import sys
 import re
-
+import getpass
 import reportbug
 from reportbug_exceptions import (
     UINotImportable,
@@ -373,6 +373,9 @@
     l = text.split('\n')
     return l
 
+def get_password(prompt=None):
+    return getpass.getpass(prompt)
+
 def menu(par, options, prompt, default=None, title=None, any_ok=False,
          order=None, extras=None, multiple=False, empty_ok=False, ui=None,
          oklabel='Ok', cancellabel='Cancel', quitlabel=None):




More information about the Reportbug-commits mailing list