org.views.page ============== .. py:module:: org.views.page .. autoapi-nested-parse:: Renders a onegov.page. Classes ------- .. autoapisummary:: org.views.page.AtomLinkInRSSExtension Functions --------- .. autoapisummary:: org.views.page.delete_page org.views.page.view_topic org.views.page.view_news_collection org.views.page.view_news org.views.page.generate_rss_feed Module Contents --------------- .. py:function:: delete_page(self: onegov.org.models.Topic | onegov.org.models.News, request: onegov.org.request.OrgRequest) -> None .. py:function:: view_topic(self: onegov.org.models.Topic, request: onegov.org.request.OrgRequest, layout: onegov.org.layout.PageLayout | None = None) -> onegov.core.types.RenderData | webob.Response .. py:function:: view_news_collection(self: onegov.org.models.NewsCollection, request: onegov.org.request.OrgRequest, layout: onegov.org.layout.NewsLayout | None = None) -> onegov.core.types.RenderData | webob.Response .. py:function:: view_news(self: onegov.org.models.News, request: onegov.org.request.OrgRequest, layout: onegov.org.layout.NewsLayout | None = None) -> onegov.core.types.RenderData | webob.Response .. py:class:: AtomLinkInRSSExtension Bases: :py:obj:`feedgen.ext.base.BaseExtension` Basic FeedGenerator extension. .. py:attribute:: fg .. py:method:: extend_rss(feed: lxml.etree._Element) -> lxml.etree._Element Extend a RSS feed xml structure containing all previously set fields. :param feed: The feed xml root element. :returns: The feed root element. .. py:method:: link(href: str, rel: str) -> None .. py:function:: generate_rss_feed(items: list[dict[str, str | bool]], request_url: str, prev_url: str | None, next_url: str | None, feed_title: str, language: str = 'de_CH') -> str