Beispiel #1
0
    LANG = LANG[:2]  # en, fr, el etc..

os_info = None  # used to cache os information

from common.contacts import LegacyContactsAPI
from common.events import Events

gmail_domains = ['gmail.com', 'googlemail.com']

transport_type = {}  # list the type of transport

last_message_time = {}  # list of time of the latest incomming message
# {acct1: {jid1: time1, jid2: time2}, }
encrypted_chats = {}  # list of encrypted chats {acct1: [jid1, jid2], ..}

contacts = LegacyContactsAPI()
gc_connected = {}  # tell if we are connected to the room or not
# {acct: {room_jid: True}}
gc_passwords = {}  # list of the pass required to enter a room
# {room_jid: password}
automatic_rooms = {}  # list of rooms that must be automaticaly configured
# and for which we have a list of invities
#{account: {room_jid: {'invities': []}}}
new_room_nick = None  # if it's != None, use this nick instead of asking for
# a new nickname when there is a conflict.

groups = {}  # list of groups
newly_added = {}  # list of contacts that has just signed in
to_be_removed = {}  # list of contacts that has just signed out

events = Events()
Beispiel #2
0
 def setUp(self):
     self.contacts = LegacyContactsAPI()