diff libervia.py @ 433:bbdbee25123a

import constants.Const as C (according to the coding rules)
author souliane <souliane@mailoo.org>
date Thu, 01 May 2014 11:29:09 +0200
parents b5b440e6ea16
children d52f529a6d42
line wrap: on
line diff
--- a/libervia.py	Sun Apr 27 18:53:37 2014 +0200
+++ b/libervia.py	Thu May 01 11:29:09 2014 +0200
@@ -37,7 +37,7 @@
 
 from sat_frontends.tools.misc import InputHistory
 from sat_frontends.tools.strings import getURLParams
-from constants import Const
+from constants import Const as C
 from sat.core.i18n import _
 
 
@@ -188,8 +188,8 @@
         self.initialised = False
         self.init_cache = []  # used to cache events until initialisation is done
         # define here the parameters that have an incidende to UI refresh
-        self.params_ui = {"unibox": {"name": Const.ENABLE_UNIBOX_PARAM,
-                                     "category": Const.ENABLE_UNIBOX_KEY,
+        self.params_ui = {"unibox": {"name": C.ENABLE_UNIBOX_PARAM,
+                                     "category": C.ENABLE_UNIBOX_KEY,
                                      "cast": lambda value: value == 'true',
                                      "value": None
                                      }
@@ -803,7 +803,7 @@
         """
         if from_jid_s == '@ALL@':
             target = '@ALL@'
-            nick = Const.ALL_OCCUPANTS
+            nick = C.ALL_OCCUPANTS
         else:
             from_jid = JID(from_jid_s)
             target = from_jid.bare