diff frontends/src/wix/xmlui.py @ 1011:5a6354ff468c

wix: use of new logging system
author Goffi <goffi@goffi.org>
date Mon, 05 May 2014 20:12:21 +0200
parents 68faf7d77a42
children 7a39ae3950f7
line wrap: on
line diff
--- a/frontends/src/wix/xmlui.py	Mon May 05 20:12:19 2014 +0200
+++ b/frontends/src/wix/xmlui.py	Mon May 05 20:12:21 2014 +0200
@@ -21,7 +21,8 @@
 
 from sat.core.i18n import _
 import wx
-from logging import debug, info, warning, error
+from sat.core.log import getLogger
+log = getLogger(__name__)
 from sat.tools.jid  import JID
 from sat_frontends.tools import xmlui
 from sat_frontends.constants import Const
@@ -144,7 +145,7 @@
         try:
             label = [label for label, _value in self._xmlui_attr_map.items() if _value == value][0]
         except IndexError:
-            warning(_("Can't find value [%s] to select" % value))
+            log.warning(_("Can't find value [%s] to select" % value))
             return
         for idx in xrange(self.GetCount()):
             self.SetSelection(idx, self.GetString(idx) == label)
@@ -320,7 +321,7 @@
 
     def onClose(self, event):
         """Close event: we have to send the form."""
-        debug(_("close"))
+        log.debug(_("close"))
         if self.type == 'param':
             self.onSaveParams()
         else: