swissvotes.layouts.votes

Module Contents

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

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.

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

abstract title() str[source]
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.

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.

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.

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.

title() str[source]