mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-27 04:20:22 +08:00
DEV: Set klass=object
for Log{in,out}Handler.
It seems plausible that people will implement custom handlers that aren't subclasses of a known type. Another possible option would be `IPythonHandler`, but even that feels too restrictive.
This commit is contained in:
parent
0953de3432
commit
8e2286911d
@ -67,7 +67,7 @@ from .services.sessions.sessionmanager import SessionManager
|
||||
|
||||
from .auth.login import LoginHandler
|
||||
from .auth.logout import LogoutHandler
|
||||
from .base.handlers import FileFindHandler
|
||||
from .base.handlers import IPythonHandler, FileFindHandler
|
||||
|
||||
from IPython.config import Config
|
||||
from IPython.config.application import catch_config_error, boolean_flag
|
||||
@ -663,12 +663,14 @@ class NotebookApp(BaseIPythonApplication):
|
||||
|
||||
login_handler = Type(
|
||||
default_value=LoginHandler,
|
||||
klass=object,
|
||||
config=True,
|
||||
help='The login handler class to use.',
|
||||
)
|
||||
|
||||
logout_handler = Type(
|
||||
default_value=LogoutHandler,
|
||||
klass=object,
|
||||
config=True,
|
||||
help='The logout handler class to use.',
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user