module handlersml
¶
Short summary¶
module lightmlboard.handlersml
Defines handlers for a Tornado application.
Classes¶
class |
truncated documentation |
---|---|
Base handler. Returns the user. |
|
Defines the main page handler. |
|
Handlers for the page on competitions. |
|
Login Handler. |
|
Logout Handler. |
|
Handlers for the main page. |
|
Handlers for the form to upload dataset. |
|
Upload data. Handlers for the form to upload dataset. |
Properties¶
property |
truncated documentation |
---|---|
|
An alias for self.request.cookies <.httputil.HTTPServerRequest.cookies>. |
|
An alias for self.request.cookies <.httputil.HTTPServerRequest.cookies>. |
|
An alias for self.request.cookies <.httputil.HTTPServerRequest.cookies>. |
|
An alias for self.request.cookies <.httputil.HTTPServerRequest.cookies>. |
|
An alias for self.request.cookies <.httputil.HTTPServerRequest.cookies>. |
|
An alias for self.request.cookies <.httputil.HTTPServerRequest.cookies>. |
|
An alias for self.request.cookies <.httputil.HTTPServerRequest.cookies>. |
|
An alias for self.request.cookies <.httputil.HTTPServerRequest.cookies>. |
|
The authenticated user for this request. This is set in one of two ways: |
|
The authenticated user for this request. This is set in one of two ways: |
|
The authenticated user for this request. This is set in one of two ways: |
|
The authenticated user for this request. This is set in one of two ways: |
|
The authenticated user for this request. This is set in one of two ways: |
|
The authenticated user for this request. This is set in one of two ways: |
|
The authenticated user for this request. This is set in one of two ways: |
|
The authenticated user for this request. This is set in one of two ways: |
|
The locale for the current session. Determined by either get_user_locale, which you can override to set … |
|
The locale for the current session. Determined by either get_user_locale, which you can override to set … |
|
The locale for the current session. Determined by either get_user_locale, which you can override to set … |
|
The locale for the current session. Determined by either get_user_locale, which you can override to set … |
|
The locale for the current session. Determined by either get_user_locale, which you can override to set … |
|
The locale for the current session. Determined by either get_user_locale, which you can override to set … |
|
The locale for the current session. Determined by either get_user_locale, which you can override to set … |
|
The locale for the current session. Determined by either get_user_locale, which you can override to set … |
|
An alias for self.application.settings <Application.settings>. |
|
An alias for self.application.settings <Application.settings>. |
|
An alias for self.application.settings <Application.settings>. |
|
An alias for self.application.settings <Application.settings>. |
|
An alias for self.application.settings <Application.settings>. |
|
An alias for self.application.settings <Application.settings>. |
|
An alias for self.application.settings <Application.settings>. |
|
An alias for self.application.settings <Application.settings>. |
|
The XSRF-prevention token for the current user/session. To prevent cross-site request forgery, we set an ‘_xsrf’ … |
|
The XSRF-prevention token for the current user/session. To prevent cross-site request forgery, we set an ‘_xsrf’ … |
|
The XSRF-prevention token for the current user/session. To prevent cross-site request forgery, we set an ‘_xsrf’ … |
|
The XSRF-prevention token for the current user/session. To prevent cross-site request forgery, we set an ‘_xsrf’ … |
|
The XSRF-prevention token for the current user/session. To prevent cross-site request forgery, we set an ‘_xsrf’ … |
|
The XSRF-prevention token for the current user/session. To prevent cross-site request forgery, we set an ‘_xsrf’ … |
|
The XSRF-prevention token for the current user/session. To prevent cross-site request forgery, we set an ‘_xsrf’ … |
|
The XSRF-prevention token for the current user/session. To prevent cross-site request forgery, we set an ‘_xsrf’ … |
Static Methods¶
staticmethod |
truncated documentation |
---|---|
Page. |
|
post |
|
post |
Methods¶
method |
truncated documentation |
---|---|
Constructor. |
|
Expected additional parameters: |
|
Expected additional parameters: |
|
Constructor. |
|
Constructor. |
|
Constructor. |
|
Constructor. See web.py. |
|
Constructor. See web.py. |
|
|
Separates attributes templates / tornado. |
|
Separates attributes templates / tornado. |
|
Separates attributes templates / tornado. |
|
Separates attributes templates / tornado. |
|
Separates attributes templates / tornado. |
|
Separates attributes templates / tornado. |
Separates attributes templates / tornado. |
|
|
Returns the content page. |
Page. |
|
|
Returns the content page. |
|
Returns the content page. |
|
Returns the content page. |
Returns the content page. |
|
|
Returns the current user. |
|
Returns the current user. |
|
Returns the current user. |
|
Returns the current user. |
|
Returns the current user. |
|
Returns the current user. |
Returns the current user. |
|
|
Returns the current user. |
|
Log information. |
|
Log information. |
|
Log information. |
|
Log information. |
|
Log information. |
|
Log information. |
Log information. |
|
|
Log information. |
Sets the current user or clear the cookie if None. |
Documentation¶
Defines handlers for a Tornado application.
- class lightmlboard.handlersml.CompetitionHandler(application, request, **kwargs)¶
Bases:
_TemplateHandler
Handlers for the page on competitions.
Constructor.
- __init__(application, request, **kwargs)¶
Constructor.
- class lightmlboard.handlersml.LoginHandler(application, request, **kwargs)¶
Bases:
_TemplateHandler
Login Handler.
Expected additional parameters:
title: application title
- __init__(application, request, **kwargs)¶
Expected additional parameters:
title: application title
- get()¶
Page.
- post()¶
- set_current_user(user)¶
Sets the current user or clear the cookie if None.
- class lightmlboard.handlersml.LogoutHandler(application, request, **kwargs)¶
Bases:
_TemplateHandler
Logout Handler.
Expected additional parameters:
tmpl_title: application title
- __init__(application, request, **kwargs)¶
Expected additional parameters:
tmpl_title: application title
- get()¶
Page.
- class lightmlboard.handlersml.MainHandler(application, request, **kwargs)¶
Bases:
_TemplateHandler
Handlers for the main page.
Constructor.
- __init__(application, request, **kwargs)¶
Constructor.
- class lightmlboard.handlersml.SubmitForm(application, request, **kwargs)¶
Bases:
_TemplateHandler
Handlers for the form to upload dataset.
Constructor.
- __init__(application, request, **kwargs)¶
Constructor.
- class lightmlboard.handlersml.UploadData(application, request, **kwargs)¶
Bases:
_TemplateHandler
Upload data. Handlers for the form to upload dataset.
Constructor.
- __init__(application, request, **kwargs)¶
Constructor.
- post()¶
- class lightmlboard.handlersml._BaseRequestHandler(application, request, **kwargs)¶
Bases:
RequestHandler
Base handler. Returns the user.
Constructor. See web.py.
- get_current_user()¶
Returns the current user.
- info(message)¶
Log information.
- class lightmlboard.handlersml._TemplateHandler(application, tmpl_name, request, **kwargs)¶
Bases:
_BaseRequestHandler
Defines the main page handler.
Constructor. See web.py.
- Parameters:
tmpl_name – template name
context – additional context for the template
- __init__(application, tmpl_name, request, **kwargs)¶
Constructor. See web.py.
- Parameters:
tmpl_name – template name
context – additional context for the template
- _process_kwargs(kwargs)¶
Separates attributes templates / tornado.
- Parameters:
kwargs – attributes
- Returns:
attributes for temples, attributes for tornado
An attributes for the template is prefixed with
'tmpl_'
.
- get()¶
Returns the content page.