wtfs.layouts.default

Module Contents

Classes

DefaultLayout

Extends the base layout class with methods related to chameleon

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.

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