[Reportbug-commits] [SCM] Reportbug - reports bugs in the Debian distribution branch, master, updated. 4.4-9-g2f709e4

Luca Bruno lethalman88 at gmail.com
Tue Jun 2 17:59:05 UTC 2009


The following commit has been merged in the master branch:
commit 35ec3bc35fc6d77cc79eb146d41f351bed36a0c8
Author: Luca Bruno <lethalman88 at gmail.com>
Date:   Sat May 30 21:33:30 2009 +0200

    add get_password() support; thanks to Arian Sanusi for the report; Closes: #530685

diff --git a/debian/changelog b/debian/changelog
index 088d425..017d24b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,5 +1,6 @@
 reportbug (4.5) UNRELEASED; urgency=low
 
+  [ Sandro Tosi ]
   * reportbug/__init__.py
     - bump reportbug version
   * reportbug/debianbts.py
@@ -14,7 +15,12 @@ reportbug (4.5) UNRELEASED; urgency=low
     - removed support for 'af' mail user agent, since it's no more in Debian;
       thanks to Carl Chenet for the report and (partial) patch; Closes: #529987
 
- -- Sandro Tosi <morph at debian.org>  Sat, 30 May 2009 11:17:56 +0200
+  [ Luca Bruno ]
+  * reportbug/ui/gtk2_ui.py:
+    - add get_password() support; thanks to Arian Sanusi for the report;
+      Closes: #530685
+
+ -- Luca Bruno <lethalman88 at gmail.com>  Sat, 30 May 2009 21:31:18 +0200
 
 reportbug (4.4) unstable; urgency=low
 
diff --git a/reportbug/ui/gtk2_ui.py b/reportbug/ui/gtk2_ui.py
index 4db09e3..6973c12 100644
--- a/reportbug/ui/gtk2_ui.py
+++ b/reportbug/ui/gtk2_ui.py
@@ -620,6 +620,12 @@ class GetStringPage (Page):
 
         self.validate ()
 
+class GetPasswordPage (GetStringPage):
+    def create_widget (self):
+        widget = GetStringPage.create_widget (self)
+        self.entry.set_visibility (False)
+        return widget
+
 class GetMultilinePage (Page):
     def setup_focus (self):
         self.view.grab_focus ()
@@ -1395,6 +1401,7 @@ def get_multiline (prompt, *args, **kwargs):
         return get_multiline (prompt, *args, **kwargs)
 
 pages = { 'get_string': GetStringPage,
+          'get_password': GetPasswordPage,
           'menu': MenuPage,
           'handle_bts_query': HandleBTSQueryPage,
           'show_report': ShowReportPage,
@@ -1459,6 +1466,7 @@ def initialize ():
 
 def test ():
     # Write some tests here
+    print get_password ("test")
     print select_options ('test', 'A', {'a': 'A test'})
     print get_multiline ('ENTER', empty_ok=True)
     print get_string ("test")

-- 
Reportbug - reports bugs in the Debian distribution



More information about the Reportbug-commits mailing list