def __init__(self):
     self.custom_timers = {}
     self.db = Connection('localhost', 27017).fanout_on_read
     self.user_pool = RandomUsernamePool()
     self.msg_gen = RandomStringGenerator()
     self.db.messages.ensure_index([('to', ASCENDING), ('time', ASCENDING)])
     pass
Beispiel #2
0
 def __init__(self):
     self.custom_timers = {}
     self.db = Connection('localhost', 27017).bucketed_fanout_on_write
     self.user_pool = RandomUsernamePool()
     self.msg_gen = RandomStringGenerator()
     self.db.inboxes.ensure_index([('owner', ASCENDING),
                                   ('sequence', ASCENDING)])
     pass
 def __init__(self):
    self.custom_timers = {} 
    self.db = Connection('localhost',27017).fanout_on_read
    self.user_pool = RandomUsernamePool()
    pass