election_day.layouts.manage

Classes

ManageLayout

Extends the base layout class with methods related to chameleon

ManageElectionsLayout

Extends the base layout class with methods related to chameleon

ManageElectionCompoundsLayout

Extends the base layout class with methods related to chameleon

ManageVotesLayout

Extends the base layout class with methods related to chameleon

ManageSubscribersLayout

Extends the base layout class with methods related to chameleon

ManageUploadTokensLayout

Extends the base layout class with methods related to chameleon

ManageDataSourcesLayout

Extends the base layout class with methods related to chameleon

ManageDataSourceItemsLayout

Extends the base layout class with methods related to chameleon

ManageScreensLayout

Extends the base layout class with methods related to chameleon

Module Contents

class election_day.layouts.manage.ManageLayout(model: Any, request: onegov.election_day.request.ElectionDayRequest)[source]

Bases: onegov.election_day.layouts.default.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.

breadcrumbs[source]
property menu: election_day.layouts.election.NestedMenu[source]
title() str[source]
clear_media(tabs: Collection[str] | None = None, additional: list[str] | None = None) int[source]
class election_day.layouts.manage.ManageElectionsLayout(model: onegov.election_day.models.Election | onegov.election_day.collections.ElectionCollection, request: onegov.election_day.request.ElectionDayRequest)[source]

Bases: ManageLayout

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.models.Election | onegov.election_day.collections.ElectionCollection[source]
clear_media() int[source]
class election_day.layouts.manage.ManageElectionCompoundsLayout(model: onegov.election_day.models.ElectionCompound | onegov.election_day.collections.ElectionCompoundCollection, request: onegov.election_day.request.ElectionDayRequest)[source]

Bases: ManageLayout

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.models.ElectionCompound | onegov.election_day.collections.ElectionCompoundCollection[source]
clear_media() int[source]
class election_day.layouts.manage.ManageVotesLayout(model: onegov.election_day.models.Vote | onegov.election_day.collections.VoteCollection, request: onegov.election_day.request.ElectionDayRequest)[source]

Bases: ManageLayout

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.models.Vote | onegov.election_day.collections.VoteCollection[source]
clear_media() int[source]
class election_day.layouts.manage.ManageSubscribersLayout(model: SubscriberCollection[Any] | Subscriber, request: onegov.election_day.request.ElectionDayRequest)[source]

Bases: ManageLayout

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: SubscriberCollection[Any] | Subscriber[source]
class election_day.layouts.manage.ManageUploadTokensLayout(model: UploadToken | UploadTokenCollection, request: onegov.election_day.request.ElectionDayRequest)[source]

Bases: ManageLayout

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: UploadToken | UploadTokenCollection[source]
class election_day.layouts.manage.ManageDataSourcesLayout(model: Any, request: onegov.election_day.request.ElectionDayRequest)[source]

Bases: ManageLayout

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 election_day.layouts.manage.ManageDataSourceItemsLayout(model: DataSource | DataSourceItemCollection, request: onegov.election_day.request.ElectionDayRequest)[source]

Bases: ManageLayout

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: DataSource | DataSourceItemCollection[source]
class election_day.layouts.manage.ManageScreensLayout(model: Any, request: onegov.election_day.request.ElectionDayRequest)[source]

Bases: ManageLayout

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.