Instantiate Spawner on User init

shrinks `User.spawn` to take single argument, grants User more direct access to state.
This commit is contained in:
Min RK
2015-12-17 15:32:43 +01:00
parent 54f9a296de
commit 41ea696546
5 changed files with 56 additions and 43 deletions

View File

@@ -275,14 +275,8 @@ class BaseHandler(RequestHandler):
raise RuntimeError("Spawn already pending for: %s" % user.name)
tic = IOLoop.current().time()
f = user.spawn(
spawner_class=self.spawner_class,
base_url=self.base_url,
hub=self.hub,
config=self.config,
authenticator=self.authenticator,
options=options,
)
f = user.spawn(options)
@gen.coroutine
def finish_user_spawn(f=None):
"""Finish the user spawn by registering listeners and notifying the proxy.