swissvotes.layouts.votes

Classes

VotesLayout

Extends the base layout class with methods related to chameleon

VotesActionLayout

Extends the base layout class with methods related to chameleon

UpdateVotesLayout

Extends the base layout class with methods related to chameleon

UpdateMetadataLayout

Extends the base layout class with methods related to chameleon

UpdateExternalResourcesLayout

Extends the base layout class with methods related to chameleon

DeleteVotesLayout

Extends the base layout class with methods related to chameleon

Module Contents

class swissvotes.layouts.votes.VotesLayout(model: Any, request: onegov.swissvotes.request.SwissvotesRequest)[source]

Bases: onegov.swissvotes.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.

model: onegov.swissvotes.collections.SwissVoteCollection[source]
property title: str[source]
property breadcrumbs: list[onegov.core.elements.Link][source]
class swissvotes.layouts.votes.VotesActionLayout(model: Any, request: onegov.swissvotes.request.SwissvotesRequest)[source]

Bases: onegov.swissvotes.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.

property title: str[source]
Abstractmethod:

property breadcrumbs: list[onegov.core.elements.Link][source]
class swissvotes.layouts.votes.UpdateVotesLayout(model: Any, request: onegov.swissvotes.request.SwissvotesRequest)[source]

Bases: VotesActionLayout

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 title: str[source]
class swissvotes.layouts.votes.UpdateMetadataLayout(model: Any, request: onegov.swissvotes.request.SwissvotesRequest)[source]

Bases: VotesActionLayout

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 title: str[source]
class swissvotes.layouts.votes.UpdateExternalResourcesLayout(model: Any, request: onegov.swissvotes.request.SwissvotesRequest)[source]

Bases: VotesActionLayout

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 title: str[source]
class swissvotes.layouts.votes.DeleteVotesLayout(model: Any, request: onegov.swissvotes.request.SwissvotesRequest)[source]

Bases: VotesActionLayout

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 title: str[source]