On Sun, Dec 05, 2010 at 02:32:14PM -0200, Rafael Cunha de Almeida wrote:
> On Wed, Jan 02, 2008 at 05:59:15AM -0800, Josh Triplett wrote:
> > Package: reportbug
> > Version: 3.39
> > Severity: wishlist
> >
> > Using bts from devscripts, "bts show --mbox $BUGNUM" will download the
> > mbox for $BUGNUM and show it in a mailer, defaulting to mutt ("mutt -f
> > %s"). I'd love to have the same feature in querybts and reportbug, so
> > that when viewing a bug, I could press a key (such as 'm', which looks
> > available) to see the mbox.
>
> I wrote a patch that implements that feature. I tried to follow the same
> style of the rest of the code, but if anyone thinks the patch is not
> good enough, just talk to me and I will change it as needed.
>
> I didn't made any changes to the curses or gtk UI. Both because I don't
> use it and I wanted to see if the developers think I have the right idea
> first. I intend to patch them later on if this patch is considered
> useful.
Actually, the other UIs stopped working after my patch. So I made this
new one to make them work, although without any new features.
diff --git a/reportbug/ui/gtk2_ui.py b/reportbug/ui/gtk2_ui.py
index 056ef0a..ab9679f 100644
--- a/reportbug/ui/gtk2_ui.py
+++ b/reportbug/ui/gtk2_ui.py
@@ -864,7 +864,8 @@ class HandleBTSQueryPage (TreePage):
value_column = 0
def sync_pre_operation (self, package, bts, timeout, mirrors=None, http_proxy="", queryonly=False, screen=None,
- archived='no', source=False, title=None, version=None, buglist=None):
+ archived='no', source=False, title=None,
+ version=None, buglist=None, mbox_reader_cmd=None):
self.bts = bts
self.mirrors = mirrors
self.http_proxy = http_proxy
diff --git a/reportbug/ui/urwid_ui.py b/reportbug/ui/urwid_ui.py
index baa94ee..c7215c2 100644
--- a/reportbug/ui/urwid_ui.py
+++ b/reportbug/ui/urwid_ui.py
@@ -532,7 +532,8 @@ def show_report(number, system, mirrors,
def handle_bts_query(package, bts, timeout, mirrors=None, http_proxy="",
queryonly=False, screen=None, title="", archived='no',
- source=False, version=None, mbox=False, buglist=None):
+ source=False, version=None, mbox=False, buglist=None,
+ mbox_reader_cmd=None):
from reportbug import debianbts
sysinfo = debianbts.SYSTEMS[bts]
_______________________________________________
Reportbug-maint mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/reportbug-maint