Package common :: Module contacts :: Class MetacontactManager
[hide private]
[frames] | no frames]

Class MetacontactManager

source code

Instance Methods [hide private]
 
__init__(self, contacts) source code
 
change_account_name(self, old_name, new_name) source code
 
add_account(self, account) source code
 
remove_account(self, account) source code
 
define_metacontacts(self, account, tags_list) source code
 
_get_new_metacontacts_tag(self, jid) source code
 
iter_metacontacts_families(self, account) source code
 
_get_metacontacts_tag(self, account, jid)
Return the tag of a jid
source code
 
add_metacontact(self, brother_account, brother_jid, account, jid, order=None) source code
 
remove_metacontact(self, account, jid) source code
 
has_brother(self, account, jid, accounts) source code
 
is_big_brother(self, account, jid, accounts) source code
 
_get_metacontacts_jids(self, tag, accounts)
Return all jid for the given tag in the form {acct: [jid1, jid2],.}
source code
 
get_metacontacts_family(self, account, jid)
Return the family of the given jid, including jid in the form: [{'account': acct, 'jid': jid, 'order': order}, ] 'order' is optional
source code
 
_get_metacontacts_family_from_tag(self, account, tag) source code
 
_compare_metacontacts(self, data1, data2)
Compare 2 metacontacts
source code
 
get_nearby_family_and_big_brother(self, family, account)
Return the nearby family and its Big Brother
source code
 
_get_metacontacts_big_brother(self, family)
Which of the family will be the big brother under wich all others will be ?
source code
Method Details [hide private]

__init__(self, contacts)
(Constructor)

source code 

change_account_name(self, old_name, new_name)

source code 

add_account(self, account)

source code 

remove_account(self, account)

source code 

define_metacontacts(self, account, tags_list)

source code 

_get_new_metacontacts_tag(self, jid)

source code 

iter_metacontacts_families(self, account)

source code 

_get_metacontacts_tag(self, account, jid)

source code 
Return the tag of a jid

add_metacontact(self, brother_account, brother_jid, account, jid, order=None)

source code 

remove_metacontact(self, account, jid)

source code 

has_brother(self, account, jid, accounts)

source code 

is_big_brother(self, account, jid, accounts)

source code 

_get_metacontacts_jids(self, tag, accounts)

source code 
Return all jid for the given tag in the form {acct: [jid1, jid2],.}

get_metacontacts_family(self, account, jid)

source code 
Return the family of the given jid, including jid in the form: [{'account': acct, 'jid': jid, 'order': order}, ] 'order' is optional

_get_metacontacts_family_from_tag(self, account, tag)

source code 

_compare_metacontacts(self, data1, data2)

source code 

Compare 2 metacontacts

Data is {'jid': jid, 'account': account, 'order': order} order is optional

get_nearby_family_and_big_brother(self, family, account)

source code 

Return the nearby family and its Big Brother

Nearby family is the part of the family that is grouped with the metacontact. A metacontact may be over different accounts. If accounts are not merged then the given family is split account wise.

(nearby_family, big_brother_jid, big_brother_account)

_get_metacontacts_big_brother(self, family)

source code 
Which of the family will be the big brother under wich all others will be ?