-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Sat, 6 Sep 2008 11:54:39 +0200
"Sandro Tosi" <[EMAIL PROTECTED]> wrote:
> >> * window size: I'd choose a window size bigger than the "initial" one,
> >> and at least so that it won't change during window navigation.
> >
> > I do agree. In the patch I have set 800x600 the bugs dialog, but I haven't
> > tried it due to packages.debian.org downtime.
>
> use -O to skip internet tests
>
> > Patches attached, they might need the previous 3 patches to be committed.
> > Shouldn't be a pain if you don't want to commit the previous 3.
>
> both patches series applied (committed at r647), but:
>
> $ reportbug --ui gtk2 -O --debug checkgmail
> Traceback (most recent call last):
> File "/usr/bin/reportbug", line 1821, in <module>
> main()
> File "/usr/bin/reportbug", line 844, in main
> return iface.user_interface()
> File "/usr/bin/reportbug", line 1029, in user_interface
> "Please change your locale if this is incorrect.\n\n", charset)
> File "/usr/bin/reportbug", line 82, in ewrite
> return quietly or ui.log_message(*args)
> File "/usr/lib/python2.5/site-packages/reportbug/ui/gtk2_ui.py",
> line 1199, in log_message
> return assistant.set_progress_label (*args, **kwargs)
> NameError: global name 'assistant' is not defined
>
Proposed patch for using initialize()
- --
http://syx.googlecode.com - Smalltalk YX
http://lethalman.blogspot.com - Thoughts about computer technologies
http://www.ammazzatecitutti.org - Ammazzateci tutti
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAkjCV64ACgkQw9Qj+8Kak3F+nwCbBTbhcsVKg2chJu6/Ybenf4YK
kG4Anjn1WREBnmwTvVrAIYj79Z1FZ05d
=jJTJ
-----END PGP SIGNATURE-----
From 874c46b8f39d92a78411483d20305817788747cb Mon Sep 17 00:00:00 2001
From: Luca Bruno <[EMAIL PROTECTED]>
Date: Sat, 6 Sep 2008 12:08:09 +0200
Subject: [PATCH] initialize() UIs
---
bin/reportbug | 1 +
reportbug/ui/newt_ui.py | 3 +++
reportbug/ui/text_ui.py | 3 +++
reportbug/ui/urwid_ui.py | 3 +++
4 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/bin/reportbug b/bin/reportbug
index f0f3728..1fce8a9 100755
--- a/bin/reportbug
+++ b/bin/reportbug
@@ -833,6 +833,7 @@ def main():
interface, msg)
ewrite('\n')
+ ui.initialize ()
submit.ui = ui
# Add INTERFACE as an environment variable to access it from the
# script gathering the special information for reportbug, when
diff --git a/reportbug/ui/newt_ui.py b/reportbug/ui/newt_ui.py
index a87e54b..38fd461 100644
--- a/reportbug/ui/newt_ui.py
+++ b/reportbug/ui/newt_ui.py
@@ -298,3 +298,6 @@ def handle_bts_query(package, bts, mirrors=None, http_proxy="",
if not screen:
scr.finish()
return result
+
+def initialize ():
+ pass
diff --git a/reportbug/ui/text_ui.py b/reportbug/ui/text_ui.py
index ae82743..add7121 100644
--- a/reportbug/ui/text_ui.py
+++ b/reportbug/ui/text_ui.py
@@ -936,3 +936,6 @@ def spawn_editor(message, filename, editor, charset='utf-8'):
ewrite('No changes were made in the editor.\n')
return (newmessage, newmessage != message)
+
+def initialize ():
+ pass
diff --git a/reportbug/ui/urwid_ui.py b/reportbug/ui/urwid_ui.py
index 7a195f0..340f59a 100644
--- a/reportbug/ui/urwid_ui.py
+++ b/reportbug/ui/urwid_ui.py
@@ -646,6 +646,9 @@ palette = [
('scrolllabel', 'white', 'dark cyan'),
]
+def initialize ():
+ pass
+
def test():
import time
--
1.5.6.5
_______________________________________________
Reportbug-maint mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/reportbug-maint