election_day.layouts.archive

Module Contents

Classes

ArchiveLayout

Extends the base layout class with methods related to chameleon

class election_day.layouts.archive.ArchiveLayout(model: onegov.election_day.collections.SearchableArchivedResultCollection, request: onegov.election_day.request.ElectionDayRequest)[source]

Bases: onegov.election_day.layouts.DefaultLayout

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.

model: onegov.election_day.collections.SearchableArchivedResultCollection[source]
menu() list[tuple[str, str, bool]][source]
tab_menu_title() str[source]