DirectReport.browserview package

Submodules

DirectReport.browserview.app module

DirectReport.browserview.app.delete(id=None)[source]

Deletes a specific entry and redirects to the list page.

Parameters:

id – The ID of the entry to delete.

Returns:

Redirects to the ‘/list’ route.

DirectReport.browserview.app.detail(id=None)[source]

Retrieves and renders the details of a specific entry.

Parameters:

id – The ID of the entry to display.

Returns:

Rendered HTML template for the entry details page.

DirectReport.browserview.app.home()[source]

Renders the homepage of the web application.

Returns:

Rendered HTML template for the homepage.

DirectReport.browserview.app.list()[source]

Retrieves and renders the list of all entries.

Returns:

Rendered HTML template for the list page.

DirectReport.browserview.app.new()[source]

Retrieves and renders the list of all entries.

Returns:

Rendered HTML template for the list page.

DirectReport.browserview.app.page_not_found(e)[source]

Custom error handler for 404 errors (page not found).

Parameters:

e – The error object.

Returns:

Rendered HTML template for the 404 error page.

Module contents