comparison frontends/src/quick_frontend/quick_contact_management.py @ 587:952322b1d490

Remove trailing whitespaces.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Fri, 18 Jan 2013 17:55:34 +0100
parents ca13633d3b6b
children beaf6bec2fcd
comparison
equal deleted inserted replaced
586:6a718ede8be1 587:952322b1d490
45 if not entity.resource: 45 if not entity.resource:
46 return 46 return
47 if entity.resource in self.__contactlist[entity.short]['resources']: 47 if entity.resource in self.__contactlist[entity.short]['resources']:
48 self.__contactlist[entity.short]['resources'].remove(entity.resource) 48 self.__contactlist[entity.short]['resources'].remove(entity.resource)
49 self.__contactlist[entity.short]['resources'].append(entity.resource) 49 self.__contactlist[entity.short]['resources'].append(entity.resource)
50 50
51 def getContFromGroup(self, group): 51 def getContFromGroup(self, group):
52 """Return all contacts which are in given group""" 52 """Return all contacts which are in given group"""
53 result = [] 53 result = []
54 for contact in self.__contactlist: 54 for contact in self.__contactlist:
55 if self.__contactlist[contact].has_key('groups'): 55 if self.__contactlist[contact].has_key('groups'):
69 if self.__contactlist[entity.short].has_key(name): 69 if self.__contactlist[entity.short].has_key(name):
70 return self.__contactlist[entity.short][name] 70 return self.__contactlist[entity.short][name]
71 else: 71 else:
72 debug(_('Trying to get attribute for an unknown contact')) 72 debug(_('Trying to get attribute for an unknown contact'))
73 return None 73 return None
74 74
75 def isConnected(self, entity): 75 def isConnected(self, entity):
76 """Tell if the contact is online""" 76 """Tell if the contact is online"""
77 return self.__contactlist.has_key(entity.short) 77 return self.__contactlist.has_key(entity.short)
78 78
79 def remove(self, entity): 79 def remove(self, entity):
99 else: 99 else:
100 debug (_('Trying to update an unknown contact: %s'), entity.short) 100 debug (_('Trying to update an unknown contact: %s'), entity.short)
101 101
102 def get_full(self, entity): 102 def get_full(self, entity):
103 return entity.short+'/'+self.__contactlist[entity.short]['resources'][-1] 103 return entity.short+'/'+self.__contactlist[entity.short]['resources'][-1]
104 104