def start_user_agent_in_single_user_mode(root_resource, services_factory, leap_home, leap_session): log.msg('Bootstrap done, loading services for user %s' % leap_session.userid) _services = services.Services(leap_session) yield _services.setup() if leap_session.fresh_account: yield add_welcome_mail(leap_session.mail_store) services_factory.add_session(leap_session.user_auth.uuid, _services) root_resource.initialize() log.msg('Done, the user agent is ready to be used')
def start_user_agent_in_single_user_mode(root_resource, services_factory, leap_home, leap_session): log.info('Bootstrap done, loading services for user %s' % leap_session.user_auth.username) _services = services.Services(leap_session) yield _services.setup() if leap_session.fresh_account: yield add_welcome_mail(leap_session.mail_store) services_factory.add_session(leap_session.user_auth.uuid, _services) root_resource.initialize() # soledad needs lots of threads reactor.getThreadPool().adjustPoolsize(5, 15) log.info('Done, the user agent is ready to be used')
def create_services_from(self, leap_session): _services = services.Services(leap_session) yield _services.setup() self._services_by_user[leap_session.user_auth.uuid] = _services