mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-14 13:33:00 +00:00
jupyterhub-1219 Enhancement: automatically create a directory for the user after successful login
This commit is contained in:
@@ -141,7 +141,6 @@ class User(HasTraits):
|
||||
)
|
||||
|
||||
# pass get/setattr to ORM user
|
||||
|
||||
def __getattr__(self, attr):
|
||||
if hasattr(self.orm_user, attr):
|
||||
return getattr(self.orm_user, attr)
|
||||
@@ -165,7 +164,7 @@ class User(HasTraits):
|
||||
if self.server is None:
|
||||
return False
|
||||
return True
|
||||
|
||||
|
||||
@property
|
||||
def server(self):
|
||||
if len(self.servers) == 0:
|
||||
@@ -283,6 +282,9 @@ class User(HasTraits):
|
||||
if (authenticator):
|
||||
yield gen.maybe_future(authenticator.pre_spawn_start(self, spawner))
|
||||
|
||||
# run optional preparation work to bootstrap the notebook
|
||||
yield gen.maybe_future(self.spawner.run_pre_spawn_hook())
|
||||
|
||||
self.spawn_pending = True
|
||||
# wait for spawner.start to return
|
||||
try:
|
||||
|
Reference in New Issue
Block a user