handlers module¶
Sputnik Request Handlers
This module provides Tornado Request Handlers for the Sputnik Web Interface.
-
class
handlers.
AddHandler
(application, request, **kwargs)[source]¶ Bases:
handlers.BaseHandler
The RequestHandler that serves the add network page.
The add network page uses a form to receive new network settings. If a network already exists using the provided name, the network is not added.
-
class
handlers.
BaseHandler
(application, request, **kwargs)[source]¶ Bases:
tornado.web.RequestHandler
A base handler that stores the Bouncer singleton.
-
class
handlers.
DeleteHandler
(application, request, **kwargs)[source]¶ Bases:
handlers.BaseHandler
The RequestHandler that handles delete network requests.
-
class
handlers.
EditHandler
(application, request, **kwargs)[source]¶ Bases:
handlers.BaseHandler
The RequestHandler that serves the edit network page.
The edit network page uses a form to receive updated settings from users. When a network is editted, it is disconnected and then recreated using the new settings.
-
class
handlers.
LoginHandler
(application, request, **kwargs)[source]¶ Bases:
handlers.BaseHandler
The RequestHandler that serves the login page.
The login page prompts the user for their password and authenticates them when the password matches the one stored by the bouncer in its database.
-
class
handlers.
LogoutHandler
(application, request, **kwargs)[source]¶ Bases:
handlers.BaseHandler
The RequestHandler that handles log out requests.
Redirects to the homepage after clearing authentication.
-
class
handlers.
MainHandler
(application, request, **kwargs)[source]¶ Bases:
handlers.BaseHandler
The main RequestHandler that serves the home page.
The home page displays the current list of networks.
-
class
handlers.
SettingsHandler
(application, request, **kwargs)[source]¶ Bases:
handlers.BaseHandler
The RequestHandler that serves the settings page.
Allows users to change their password.