diff frontends/primitivus/contact_list.py @ 128:2240f34f6452

Primitivus: misc fixes + menubar first draft - Menu bar: first draft of class - Password widget fixed - change some str to unicode, notably for JID
author Goffi <goffi@goffi.org>
date Tue, 13 Jul 2010 02:24:59 +0800
parents 8d611eb9ae48
children f197b52796ee
line wrap: on
line diff
--- a/frontends/primitivus/contact_list.py	Mon Jul 12 18:55:27 2010 +0800
+++ b/frontends/primitivus/contact_list.py	Tue Jul 13 02:24:59 2010 +0800
@@ -150,9 +150,10 @@
         """mark a contact disconnected"""
         self.remove(jid.short)
     
-    def remove(self, jid):
+    def remove(self, param_jid):
         """remove a contact from the list"""
         groups_to_remove = []
+        jid = JID(param_jid)
         for group in self.groups:
             contacts = self.groups[group][1]
             if jid.short in contacts: