module handlersml

Inheritance diagram of lightmlboard.handlersml

Short summary

module lightmlboard.handlersml

Defines handlers for a Tornado application.

source on GitHub

Classes

class

truncated documentation

_BaseRequestHandler

Base handler. Returns the user.

_TemplateHandler

Defines the main page handler.

CompetitionHandler

Handlers for the page on competitions.

LoginHandler

Login Handler.

LogoutHandler

Logout Handler.

MainHandler

Handlers for the main page.

SubmitForm

Handlers for the form to upload dataset.

UploadData

Upload data. Handlers for the form to upload dataset.

Properties

property

truncated documentation

cookies

An alias for self.request.cookies <.httputil.HTTPServerRequest.cookies>.

cookies

An alias for self.request.cookies <.httputil.HTTPServerRequest.cookies>.

cookies

An alias for self.request.cookies <.httputil.HTTPServerRequest.cookies>.

cookies

An alias for self.request.cookies <.httputil.HTTPServerRequest.cookies>.

cookies

An alias for self.request.cookies <.httputil.HTTPServerRequest.cookies>.

cookies

An alias for self.request.cookies <.httputil.HTTPServerRequest.cookies>.

cookies

An alias for self.request.cookies <.httputil.HTTPServerRequest.cookies>.

cookies

An alias for self.request.cookies <.httputil.HTTPServerRequest.cookies>.

current_user

The authenticated user for this request. This is set in one of two ways:

current_user

The authenticated user for this request. This is set in one of two ways:

current_user

The authenticated user for this request. This is set in one of two ways:

current_user

The authenticated user for this request. This is set in one of two ways:

current_user

The authenticated user for this request. This is set in one of two ways:

current_user

The authenticated user for this request. This is set in one of two ways:

current_user

The authenticated user for this request. This is set in one of two ways:

current_user

The authenticated user for this request. This is set in one of two ways:

locale

The locale for the current session. Determined by either get_user_locale, which you can override to set …

locale

The locale for the current session. Determined by either get_user_locale, which you can override to set …

locale

The locale for the current session. Determined by either get_user_locale, which you can override to set …

locale

The locale for the current session. Determined by either get_user_locale, which you can override to set …

locale

The locale for the current session. Determined by either get_user_locale, which you can override to set …

locale

The locale for the current session. Determined by either get_user_locale, which you can override to set …

locale

The locale for the current session. Determined by either get_user_locale, which you can override to set …

locale

The locale for the current session. Determined by either get_user_locale, which you can override to set …

settings

An alias for self.application.settings <Application.settings>.

settings

An alias for self.application.settings <Application.settings>.

settings

An alias for self.application.settings <Application.settings>.

settings

An alias for self.application.settings <Application.settings>.

settings

An alias for self.application.settings <Application.settings>.

settings

An alias for self.application.settings <Application.settings>.

settings

An alias for self.application.settings <Application.settings>.

settings

An alias for self.application.settings <Application.settings>.

xsrf_token

The XSRF-prevention token for the current user/session. To prevent cross-site request forgery, we set an ‘_xsrf’ …

xsrf_token

The XSRF-prevention token for the current user/session. To prevent cross-site request forgery, we set an ‘_xsrf’ …

xsrf_token

The XSRF-prevention token for the current user/session. To prevent cross-site request forgery, we set an ‘_xsrf’ …

xsrf_token

The XSRF-prevention token for the current user/session. To prevent cross-site request forgery, we set an ‘_xsrf’ …

xsrf_token

The XSRF-prevention token for the current user/session. To prevent cross-site request forgery, we set an ‘_xsrf’ …

xsrf_token

The XSRF-prevention token for the current user/session. To prevent cross-site request forgery, we set an ‘_xsrf’ …

xsrf_token

The XSRF-prevention token for the current user/session. To prevent cross-site request forgery, we set an ‘_xsrf’ …

xsrf_token

The XSRF-prevention token for the current user/session. To prevent cross-site request forgery, we set an ‘_xsrf’ …

Static Methods

staticmethod

truncated documentation

get

Page.

post

post

post

post

Methods

method

truncated documentation

__init__

Constructor.

__init__

Expected additional parameters:

__init__

Expected additional parameters:

__init__

Constructor.

__init__

Constructor.

__init__

Constructor.

__init__

Constructor. See web.py.

__init__

Constructor. See web.py.

_process_kwargs

Separates attributes templates / tornado.

_process_kwargs

Separates attributes templates / tornado.

_process_kwargs

Separates attributes templates / tornado.

_process_kwargs

Separates attributes templates / tornado.

_process_kwargs

Separates attributes templates / tornado.

_process_kwargs

Separates attributes templates / tornado.

_process_kwargs

Separates attributes templates / tornado.

get

Returns the content page.

get

Page.

get

Returns the content page.

get

Returns the content page.

get

Returns the content page.

get

Returns the content page.

get_current_user

Returns the current user.

get_current_user

Returns the current user.

get_current_user

Returns the current user.

get_current_user

Returns the current user.

get_current_user

Returns the current user.

get_current_user

Returns the current user.

get_current_user

Returns the current user.

get_current_user

Returns the current user.

info

Log information.

info

Log information.

info

Log information.

info

Log information.

info

Log information.

info

Log information.

info

Log information.

info

Log information.

set_current_user

Sets the current user or clear the cookie if None.

Documentation

Defines handlers for a Tornado application.

source on GitHub

class lightmlboard.handlersml.CompetitionHandler(application, request, **kwargs)[source]

Bases: lightmlboard.handlersml._TemplateHandler

Handlers for the page on competitions.

source on GitHub

Constructor.

source on GitHub

__init__(application, request, **kwargs)[source]

Constructor.

source on GitHub

class lightmlboard.handlersml.LoginHandler(application, request, **kwargs)[source]

Bases: lightmlboard.handlersml._TemplateHandler

Login Handler.

source on GitHub

Expected additional parameters:

  • title: application title

source on GitHub

__init__(application, request, **kwargs)[source]

Expected additional parameters:

  • title: application title

source on GitHub

get()[source]

Page.

source on GitHub

post()[source]
set_current_user(user)[source]

Sets the current user or clear the cookie if None.

source on GitHub

class lightmlboard.handlersml.LogoutHandler(application, request, **kwargs)[source]

Bases: lightmlboard.handlersml._TemplateHandler

Logout Handler.

source on GitHub

Expected additional parameters:

  • tmpl_title: application title

source on GitHub

__init__(application, request, **kwargs)[source]

Expected additional parameters:

  • tmpl_title: application title

source on GitHub

get()[source]

Page.

source on GitHub

class lightmlboard.handlersml.MainHandler(application, request, **kwargs)[source]

Bases: lightmlboard.handlersml._TemplateHandler

Handlers for the main page.

source on GitHub

Constructor.

source on GitHub

__init__(application, request, **kwargs)[source]

Constructor.

source on GitHub

class lightmlboard.handlersml.SubmitForm(application, request, **kwargs)[source]

Bases: lightmlboard.handlersml._TemplateHandler

Handlers for the form to upload dataset.

source on GitHub

Constructor.

source on GitHub

__init__(application, request, **kwargs)[source]

Constructor.

source on GitHub

class lightmlboard.handlersml.UploadData(application, request, **kwargs)[source]

Bases: lightmlboard.handlersml._TemplateHandler

Upload data. Handlers for the form to upload dataset.

source on GitHub

Constructor.

source on GitHub

__init__(application, request, **kwargs)[source]

Constructor.

source on GitHub

post()[source]
class lightmlboard.handlersml._BaseRequestHandler(application, request, **kwargs)[source]

Bases: tornado.web.RequestHandler

Base handler. Returns the user.

source on GitHub

Constructor. See web.py.

source on GitHub

__init__(application, request, **kwargs)[source]

Constructor. See web.py.

source on GitHub

get_current_user()[source]

Returns the current user.

source on GitHub

info(message)[source]

Log information.

source on GitHub

class lightmlboard.handlersml._TemplateHandler(application, tmpl_name, request, **kwargs)[source]

Bases: lightmlboard.handlersml._BaseRequestHandler

Defines the main page handler.

source on GitHub

Constructor. See web.py.

Parameters
  • tmpl_name – template name

  • context – additional context for the template

source on GitHub

__init__(application, tmpl_name, request, **kwargs)[source]

Constructor. See web.py.

Parameters
  • tmpl_name – template name

  • context – additional context for the template

source on GitHub

_process_kwargs(kwargs)[source]

Separates attributes templates / tornado.

Parameters

kwargs – attributes

Returns

attributes for temples, attributes for tornado

An attributes for the template is prefixed with 'tmpl_'.

source on GitHub

get()[source]

Returns the content page.

source on GitHub