add a messages refresh button, and better handler of contacts selection

This commit is contained in:
Romain Bignon 2010-10-30 09:58:52 +02:00
commit 28e57001bc
3 changed files with 98 additions and 39 deletions

View file

@ -118,6 +118,12 @@ class CapBaseObject(object):
for attrstr in self.FIELDS:
yield attrstr, getattr(self, attrstr)
def __eq__(self, obj):
if isinstance(obj, CapBaseObject):
return self.backend == obj.backend and self.id == obj.id
else:
return False
class _AttribValue(object):
def __init__(self, type, value):
self.type = type