add a messages refresh button, and better handler of contacts selection
This commit is contained in:
parent
487284fe5c
commit
28e57001bc
3 changed files with 98 additions and 39 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue