wtfs.layouts.default

Classes

DefaultLayout

Extends the base layout class with methods related to chameleon

Module Contents

class wtfs.layouts.default.DefaultLayout(model: object, request: onegov.core.request.CoreRequest)[source]

Bases: onegov.core.layout.ChameleonLayout

Extends the base layout class with methods related to chameleon template rendering.

This class assumes the existance of two templates:

  • layout.pt -> Contains the page skeleton with headers, body and so on.

  • macros.pt -> Contains chameleon macros.

app: onegov.wtfs.WtfsApp[source]

Returns the application behind the request.

day_long_format = 'skeleton:MMMMd'[source]
date_long_format = 'long'[source]
datetime_long_format = 'medium'[source]
property title: str[source]
property top_navigation: list[onegov.core.elements.Element][source]
property breadcrumbs: list[onegov.core.elements.Element][source]
property static_path: str[source]
property sentry_init_path: str[source]
property homepage_url: str[source]
login_to_url(to: str | None) str[source]
property login_url: str | None[source]
property logout_url: str | None[source]
property users_url: str[source]
property municipalities_url: str[source]
property scan_jobs_url: str[source]
property daily_list_url: str[source]
property report_url: str[source]
property invoices_url: str[source]
property notifications_url: str[source]
property payment_types_url: str[source]
property user_manual_url: str[source]
property cancel_url: str[source]
property success_url: str[source]
property current_year: int[source]
property notifications: onegov.wtfs.collections.NotificationCollection[source]