Base Tornado handlers for the notebook.
Authors:
Bases: tornado.web.RequestHandler
A RequestHandler with an authenticated user.
Is a user currently logged in?
May a user proceed to log in?
This returns True if login capability is available, irrespective of whether the user is already logged in or not.
our password
Bases: IPython.html.base.handlers.AuthenticatedHandler
IPython-specific extensions to authenticated handling
Mostly property shortcuts to IPython-specific settings.
render custom error pages
Return the body of the request as JSON data.
Return the jinja template object for a given name
use the IPython log by default, falling back on tornado’s logger
Bases: IPython.html.base.handlers.IPythonHandler
Render our 404 template
Bases: IPython.html.base.handlers.IPythonHandler, tornado.web.StaticFileHandler
static files should only be accessible when logged in
Validate and return the absolute path.
Requires tornado 3.1
Adding to tornado’s own handling, forbids the serving of hidden files.
Bases: tornado.web.StaticFileHandler
subclass of StaticFileHandler for serving files from a search path
locate a file to serve on our static file search path
check if the file should be served (raises 404, 403, etc.)
Bases: tornado.web.RequestHandler
Simple redirect handler that strips trailing slashes
This should be the first, highest priority handler.
Decorate methods with this to return GitHub style JSON errors.
This should be used on any JSON API on any handler method that can raise HTTPErrors.
This will grab the latest HTTPError exception using sys.exc_info and then: