election_day.views.sitemap

Functions

urls(→ Iterator[str])

view_sitemap_xml(→ onegov.core.types.RenderData)

Returns a XML-sitemap.

view_sitemap_json(→ onegov.core.types.RenderData)

Returns the XML-sitemap as json.

view_sitemap(→ onegov.core.types.RenderData)

Returns a site map (with hiearchy).

Module Contents

election_day.views.sitemap.urls(principal: onegov.election_day.models.Principal, request: onegov.election_day.request.ElectionDayRequest) Iterator[str][source]
election_day.views.sitemap.view_sitemap_xml(self: onegov.election_day.models.Principal, request: onegov.election_day.request.ElectionDayRequest) onegov.core.types.RenderData[source]

Returns a XML-sitemap.

See https://www.sitemaps.org for more information.

election_day.views.sitemap.view_sitemap_json(self: onegov.election_day.models.Principal, request: onegov.election_day.request.ElectionDayRequest) onegov.core.types.RenderData[source]

Returns the XML-sitemap as json.

election_day.views.sitemap.view_sitemap(self: onegov.election_day.models.Principal, request: onegov.election_day.request.ElectionDayRequest) onegov.core.types.RenderData[source]

Returns a site map (with hiearchy).