options_form is a regular configurable

now that we can assume User.spawner exists at all times
This commit is contained in:
Min RK
2015-12-17 16:00:40 +01:00
parent 41ea696546
commit f9c9c2b471
6 changed files with 29 additions and 21 deletions

View File

@@ -68,7 +68,7 @@ class LoginHandler(BaseHandler):
if user.spawner:
status = yield user.spawner.poll()
already_running = (status == None)
if not already_running and not self.spawner_class.options_form:
if not already_running and not user.spawner.options_form:
yield self.spawn_single_user(user)
self.set_login_cookie(user)
next_url = self.get_argument('next', default='')