onboarding.layout

Classes

Layout

Extends the base layout class with methods related to chameleon

DefaultLayout

Extends the base layout class with methods related to chameleon

MailLayout

Extends the base layout class with methods related to chameleon

Module Contents

class onboarding.layout.Layout(model: Any, 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 font_awesome_path: str[source]
property logo_path: str[source]
property town_names_path: str[source]
class onboarding.layout.DefaultLayout(model: Any, request: onegov.core.request.CoreRequest)[source]

Bases: Layout

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.

class onboarding.layout.MailLayout(model: Any, request: onegov.core.request.CoreRequest)[source]

Bases: Layout

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 base: chameleon.PageTemplateFile[source]

Returns the layout, which defines the base layout of all pages.

See templates/layout.pt.

property macros: onegov.core.templates.MacrosLookup[source]
Abstractmethod:

Returns the macros, which offer often used html constructs. See templates/macros.pt.