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:
Scott Sanderson 2014-12-18 01:51:58 -05:00
parent 0953de3432
commit 8e2286911d

View File

@ -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.',
)