election_day.layouts.manage

Module Contents

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

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.

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.ballot.Election | onegov.ballot.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.ballot.Election | onegov.ballot.ElectionCollection[source]
clear_media() int[source]
class election_day.layouts.manage.ManageElectionCompoundsLayout(model: onegov.ballot.ElectionCompound | onegov.ballot.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.ballot.ElectionCompound | onegov.ballot.ElectionCompoundCollection[source]
clear_media() int[source]
class election_day.layouts.manage.ManageVotesLayout(model: onegov.ballot.Vote | onegov.ballot.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.ballot.Vote | onegov.ballot.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.