Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Debian Java (http://www.linux-archive.org/debian-java/)
-   -   Network spoke: slightly improve temporary DBG print messages (http://www.linux-archive.org/debian-java/672112-network-spoke-slightly-improve-temporary-dbg-print-messages.html)

Radek Vykydal 05-29-2012 08:12 AM

Network spoke: slightly improve temporary DBG print messages
 
---
pyanaconda/ui/gui/spokes/network.py | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/pyanaconda/ui/gui/spokes/network.py b/pyanaconda/ui/gui/spokes/network.py
index 0552650..0fe4295 100644
--- a/pyanaconda/ui/gui/spokes/network.py
+++ b/pyanaconda/ui/gui/spokes/network.py
@@ -370,9 +370,9 @@ class NetworkControlBox():
self.refresh_ui(device)

def on_device_state_changed(self, *args):
- print "DBG: on_device_state_changed"
device = args[0]
new_state = args[1]
+ print "DBG: on_device_state_changed to: %d" % new_state
self._refresh_carrier_info()
read_config_values = (new_state == NetworkManager.DeviceState.ACTIVATED)
if device == self.selected_device():
@@ -453,11 +453,11 @@ class NetworkControlBox():

def on_device_off_toggled(self, switch, *args):
if self._updating_device:
- print "DBG: off switch ignored"
+ print "DBG: on_device_off_toggled ignored"
return

active = switch.get_active()
- print "DBG: off switch active: %s" % active
+ print "DBG: on_device_off_toggled from: %s" % active

device = self.selected_device()

@@ -595,6 +595,7 @@ class NetworkControlBox():
del(row)

def refresh_ui(self, device, read_config_values=False):
+ print "DBG: refresh ui %s" % device
self._refresh_device_type_page(device)
self._refresh_header_ui(device)
self._refresh_speed_hwaddr(device)
--
1.7.4

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


All times are GMT. The time now is 04:59 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.