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.

font_awesome_path() str[source]
logo_path() str[source]
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.

base() chameleon.PageTemplateFile[source]

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

See templates/layout.pt.

abstract macros() onegov.core.templates.MacrosLookup[source]

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