diff frontends/src/wix/contact_list.py @ 812:084b52afdceb

frontends: fixed /me usage + renamed a couple of "type" parameters to type_
author Goffi <goffi@goffi.org>
date Tue, 04 Feb 2014 18:51:16 +0100
parents 1fe00f0c9a91
children 6f1e03068b5f
line wrap: on
line diff
--- a/frontends/src/wix/contact_list.py	Tue Feb 04 18:32:49 2014 +0100
+++ b/frontends/src/wix/contact_list.py	Tue Feb 04 18:51:16 2014 +0100
@@ -36,17 +36,17 @@
 class ContactList(wx.SimpleHtmlListBox, QuickContactList):
     """Customized control to manage contacts."""
 
-    def __init__(self, parent, host, type="JID"):
+    def __init__(self, parent, host, type_="JID"):
         """init the contact list
         @param parent: WxWidgets parent of the widget
         @param host: wix main app class
-        @param type: type of contact list: "JID" for the usual big jid contact list
+        @param type_: type of contact list: "JID" for the usual big jid contact list
                                            "CUSTOM" for a customized contact list (self.__presentItem must then be overrided)
         """
         wx.SimpleHtmlListBox.__init__(self, parent, -1)
         QuickContactList.__init__(self)
         self.host = host
-        self.type = type
+        self.type = type_
         self.__typeSwitch()
         self.groups = {}  #list contacts in each groups, key = group
         self.empty_avatar = join(host.media_dir, 'misc/empty_avatar')
@@ -59,7 +59,7 @@
     def __typeSwitch(self):
         if self.type == "JID":
             self.__presentItem = self.__presentItemJID
-        elif type != "CUSTOM":
+        elif type_ != "CUSTOM":
             self.__presentItem = self.__presentItemDefault
 
     def __find_idx(self, entity):