comparison browser_side/contact.py @ 22:586f69e85559

browser_side: removed some useless mess + changed delay for warning message to 2s
author Goffi <goffi@goffi.org>
date Sun, 17 Apr 2011 00:38:33 +0200
parents 77c2e48efa29
children 258dfaa1035f
comparison
equal deleted inserted replaced
21:77c2e48efa29 22:586f69e85559
151 def isContactInGroup(self, group, contact_jid): 151 def isContactInGroup(self, group, contact_jid):
152 """Test if the contact_jid is in the group 152 """Test if the contact_jid is in the group
153 @param group: string of single group, or list of string 153 @param group: string of single group, or list of string
154 @param contact_jid: jid to test 154 @param contact_jid: jid to test
155 @return: True if contact_jid is in on of the groups""" 155 @return: True if contact_jid is in on of the groups"""
156 print "isContactInGroup: %s, %s" % (group, contact_jid)
157 print JID(contact_jid)
158 print self.groups[group]
159 if self.groups.has_key(group) and contact_jid in self.groups[group]: 156 if self.groups.has_key(group) and contact_jid in self.groups[group]:
160 return True 157 return True
161 return False 158 return False
162 159
163 def getGroups(self): 160 def getGroups(self):