changeset ea30659ebe1b in tryton:5.0
details: https://hg.tryton.org/tryton?cmd=changeset;node=ea30659ebe1b
description:
        Remove usage of _USERNAME in send_bugtracker

        _USERNAME has been removed from rpc since changeset efacc2b32116

        issue8171
        review53581002
        (grafted from b7464ef7f0eefd0aba7f648f7919001ae8a6446e)
diffstat:

 tryton/common/common.py |  7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)

diffs (24 lines):

diff -r 51ddd33c6d7a -r ea30659ebe1b tryton/common/common.py
--- a/tryton/common/common.py   Fri Mar 15 11:15:41 2019 +0100
+++ b/tryton/common/common.py   Fri Mar 15 11:16:58 2019 +0100
@@ -791,7 +791,6 @@
 
 
 def send_bugtracker(title, msg):
-    from tryton import rpc
     parent = get_toplevel_window()
     win = gtk.Dialog(_('Bug Tracker'), parent,
             gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT)
@@ -831,11 +830,7 @@
 
     win.vbox.pack_start(hbox)
     win.show_all()
-    if rpc._USERNAME:
-        entry_user.set_text(rpc._USERNAME)
-        entry_password.grab_focus()
-    else:
-        entry_user.grab_focus()
+    entry_user.grab_focus()
 
     response = win.run()
     parent.present()

Reply via email to