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

@@ -452,12 +452,12 @@ class UserSpawnHandler(BaseHandler):
# spawn has supposedly finished, check on the status
status = yield current_user.spawner.poll()
if status is not None:
if self.spawner_class.options_form:
if current_user.spawner.options_form:
self.redirect(url_path_join(self.hub.server.base_url, 'spawn'))
else:
yield self.spawn_single_user(current_user)
else:
if self.spawner_class.options_form:
if current_user.spawner.options_form:
self.redirect(url_path_join(self.hub.server.base_url, 'spawn'))
else:
yield self.spawn_single_user(current_user)