The abstract controller for Tori framework which uses Jinja2 as a template engine instead of the default one that comes with Tornado.
Get the (re-usable) component from the initialized Imagination component locator service.
Parameters: |
|
---|---|
Returns: | module, package registered or None |
Render the template with the given contexts and push the output buffer.
See tori.renderer.Renderer.render() for more information.
Render the template with the given contexts.
See tori.renderer.Renderer.render() for more information.
Session Controller
Return type: | tori.session.controller.Controller |
---|
Template Engine
Return type: | tori.template.renderer.Renderer |
---|
Generates an error response with status_code for all requests.
Resource service is to serve a static resource via HTTP/S protocal.
Add the routing pattern for the resource path prefix.
Parameters: |
|
---|
Get a particular resource.
Parameters: | path – blocks of path used to composite an actual path. |
---|
Note
This method requires refactoring.
Abstract REST-capable controller based on a single primary key.
Create an entity.
Handle DELETE requests.
Handle GET requests.
Retrieve the list of all entities.
Handle POST requests.
Handle PUT requests.
Remove an entity with id.
Retrieve an entity with id.
Update an entity with id.