summaryrefslogtreecommitdiffstats
path: root/abrt-triage.py
diff options
context:
space:
mode:
Diffstat (limited to 'abrt-triage.py')
-rwxr-xr-xabrt-triage.py35
1 files changed, 1 insertions, 34 deletions
diff --git a/abrt-triage.py b/abrt-triage.py
index 0a8ebb1..e6e3095 100755
--- a/abrt-triage.py
+++ b/abrt-triage.py
@@ -5,40 +5,8 @@ import sys
import bugzilla
-import gtk
-import gtk.glade
-
from rules import get_change
-class ChangeGui(object):
- def __init__(self, change):
- self.change = change
-
- self._change_wnd = gtk.glade.XML ('triage.glade', 'change_window')
- self._window = self._change_wnd.get_widget('change_window')
- self._old_summary = self._change_wnd.get_widget('old_summary')
- self._new_summary = self._change_wnd.get_widget('new_summary')
- self._old_component = self._change_wnd.get_widget('old_component')
- self._new_component = self._change_wnd.get_widget('new_component')
- self._new_comment = self._change_wnd.get_widget('new_comment')
-
- print self.__dict__
- for attr in self.__dict__:
- print attr
- #print getattr(self, attr).__dict__
- print self._window.__dict__
- self._window.set_title('Proposed changes for bug %i' % self.change.bug.id)
- self._old_summary.set_text(change.bug._bug.summary)
- if change.newsummary:
- self._new_summary.set_text(change.newsummary)
- self._old_component.set_text(change.bug._bug.component)
- if change.newcomponent:
- self._new_component.set_text(change.newcomponent)
- if change.comment:
- self._new_comment.get_buffer().set_text(change.comment)
-
-
-
def main():
bug_id = int(sys.argv[1])
bz=bugzilla.Bugzilla(url='https://bugzilla.redhat.com/xmlrpc.cgi')
@@ -46,11 +14,10 @@ def main():
change = get_change(bz, bug_id)
print change
if False:
+ from ui import ChangeGui
g = ChangeGui(change)
gtk.main()
-
-
main()