Third buggy commit
This commit is contained in:
parent
d7ea3283b9
commit
e0c9b6309f
|
@ -18,7 +18,7 @@ import common.gajim
|
||||||
|
|
||||||
class Contact:
|
class Contact:
|
||||||
'''Information concerning each contact'''
|
'''Information concerning each contact'''
|
||||||
def __init__(self, jid='', name='', groups=[], show='', status='', sub='',
|
def __init__(self, jid='', name='', groups=[], show='', status='', mood='', sub='',
|
||||||
ask='', resource='', priority=0, keyID='', our_chatstate=None,
|
ask='', resource='', priority=0, keyID='', our_chatstate=None,
|
||||||
chatstate=None, last_status_time=None, msg_id = None, composing_jep = None):
|
chatstate=None, last_status_time=None, msg_id = None, composing_jep = None):
|
||||||
self.jid = jid
|
self.jid = jid
|
||||||
|
@ -26,6 +26,7 @@ class Contact:
|
||||||
self.groups = groups
|
self.groups = groups
|
||||||
self.show = show
|
self.show = show
|
||||||
self.status = status
|
self.status = status
|
||||||
|
self.mood = mood
|
||||||
self.sub = sub
|
self.sub = sub
|
||||||
self.ask = ask
|
self.ask = ask
|
||||||
self.resource = resource
|
self.resource = resource
|
||||||
|
@ -139,16 +140,17 @@ class Contacts:
|
||||||
del self._gc_contacts[account]
|
del self._gc_contacts[account]
|
||||||
del self._metacontacts_tags[account]
|
del self._metacontacts_tags[account]
|
||||||
|
|
||||||
def create_contact(self, jid='', name='', groups=[], show='', status='',
|
def create_contact(self, jid='', name='', groups=[], show='', status='', mood='',
|
||||||
sub='', ask='', resource='', priority=0, keyID='', our_chatstate=None,
|
sub='', ask='', resource='', priority=0, keyID='', our_chatstate=None,
|
||||||
chatstate=None, last_status_time=None, composing_jep=None):
|
chatstate=None, last_status_time=None, composing_jep=None):
|
||||||
return Contact(jid, name, groups, show, status, sub, ask, resource,
|
return Contact(jid, name, groups, show, status, mood, sub, ask, resource,
|
||||||
priority, keyID, our_chatstate, chatstate, last_status_time,
|
priority, keyID, our_chatstate, chatstate, last_status_time,
|
||||||
composing_jep)
|
composing_jep)
|
||||||
|
|
||||||
def copy_contact(self, contact):
|
def copy_contact(self, contact):
|
||||||
return self.create_contact(jid = contact.jid, name = contact.name,
|
return self.create_contact(jid = contact.jid, name = contact.name,
|
||||||
groups = contact.groups, show = contact.show, status = contact.status,
|
groups = contact.groups, show = contact.show, status =
|
||||||
|
contact.status, mood = contact.mood,
|
||||||
sub = contact.sub, ask = contact.ask, resource = contact.resource,
|
sub = contact.sub, ask = contact.ask, resource = contact.resource,
|
||||||
priority = contact.priority, keyID = contact.keyID,
|
priority = contact.priority, keyID = contact.keyID,
|
||||||
our_chatstate = contact.our_chatstate, chatstate = contact.chatstate,
|
our_chatstate = contact.our_chatstate, chatstate = contact.chatstate,
|
||||||
|
|
Loading…
Reference in New Issue