town6.homepage_widgets
======================
.. py:module:: town6.homepage_widgets
Classes
-------
.. autoapisummary::
town6.homepage_widgets.RowWidget
town6.homepage_widgets.RowWidgetWide
town6.homepage_widgets.ColumnWidget
town6.homepage_widgets.TitleWidget
town6.homepage_widgets.AutoplayVideoWidget
town6.homepage_widgets.RandomVideosWidget
town6.homepage_widgets.IconLinksWidget
town6.homepage_widgets.TextWidget
town6.homepage_widgets.LinksWidget
town6.homepage_widgets.NewsWidget
town6.homepage_widgets.EventCard
town6.homepage_widgets.EventsWidget
town6.homepage_widgets.PartnerWidget
town6.homepage_widgets.ServicesWidget
town6.homepage_widgets.ContactsAndAlbumsWidget
town6.homepage_widgets.DirectoriesWidget
town6.homepage_widgets.FocusWidget
town6.homepage_widgets.TestimonialsWidget
town6.homepage_widgets.TestimonialSliderWidget
town6.homepage_widgets.JobsWidget
town6.homepage_widgets.RSSItem
town6.homepage_widgets.RSSChannel
Functions
---------
.. autoapisummary::
town6.homepage_widgets.parsed_rss
Module Contents
---------------
.. py:class:: RowWidget
.. py:attribute:: template
:value: Multiline-String
.. raw:: html
Show Value
.. code-block:: python
"""
"""
.. raw:: html
.. py:class:: RowWidgetWide
.. py:attribute:: template
:value: Multiline-String
.. raw:: html
Show Value
.. code-block:: python
"""
"""
.. raw:: html
.. py:class:: ColumnWidget
.. py:attribute:: template
:value: Multiline-String
.. raw:: html
Show Value
.. code-block:: python
"""
"""
.. raw:: html
.. py:class:: TitleWidget
.. py:attribute:: template
:value: Multiline-String
.. raw:: html
Show Value
.. code-block:: python
"""
"""
.. raw:: html
.. py:class:: AutoplayVideoWidget
.. py:attribute:: template
:value: Multiline-String
.. raw:: html
Show Value
.. code-block:: python
"""
"""
.. raw:: html
.. py:class:: RandomVideosWidget
.. py:attribute:: template
:value: Multiline-String
.. raw:: html
Show Value
.. code-block:: python
"""
"""
.. raw:: html
.. py:class:: IconLinksWidget
.. py:attribute:: template
:value: Multiline-String
.. raw:: html
Show Value
.. code-block:: python
"""
"""
.. raw:: html
.. py:class:: TextWidget
.. py:attribute:: template
:value: Multiline-String
.. raw:: html
Show Value
.. code-block:: python
"""
"""
.. raw:: html
.. py:class:: LinksWidget
.. py:attribute:: template
:value: Multiline-String
.. raw:: html
Show Value
.. code-block:: python
"""
"""
.. raw:: html
.. py:class:: NewsWidget
Bases: :py:obj:`onegov.org.homepage_widgets.NewsWidget`
.. py:attribute:: news_limit
:value: 3
.. py:attribute:: template
:value: Multiline-String
.. raw:: html
Show Value
.. code-block:: python
"""
"""
.. raw:: html
.. py:class:: EventCard
Bases: :py:obj:`NamedTuple`
.. py:attribute:: text
:type: str
.. py:attribute:: url
:type: str
.. py:attribute:: subtitle
:type: str
.. py:attribute:: image_url
:type: str | None
.. py:attribute:: location
:type: str | None
.. py:attribute:: lead
:type: str
.. py:class:: EventsWidget
.. py:attribute:: template
:value: Multiline-String
.. raw:: html
Show Value
.. code-block:: python
"""
"""
.. raw:: html
.. py:method:: get_variables(layout: onegov.town6.layout.DefaultLayout) -> onegov.core.types.RenderData
.. py:class:: PartnerWidget
.. py:attribute:: template
:value: Multiline-String
.. raw:: html
Show Value
.. code-block:: python
"""
'
"""
.. raw:: html
.. py:method:: get_variables(layout: onegov.town6.layout.DefaultLayout) -> onegov.core.types.RenderData
.. py:class:: ServicesWidget
.. py:attribute:: template
:value: Multiline-String
.. raw:: html
Show Value
.. code-block:: python
"""
"""
.. raw:: html
.. py:method:: get_service_links(layout: onegov.town6.layout.DefaultLayout) -> collections.abc.Iterator[onegov.org.elements.Link]
.. py:method:: get_variables(layout: onegov.town6.layout.DefaultLayout) -> onegov.core.types.RenderData
.. py:class:: ContactsAndAlbumsWidget
.. py:attribute:: template
:value: Multiline-String
.. raw:: html
Show Value
.. code-block:: python
"""
"""
.. raw:: html
.. py:method:: get_variables(layout: onegov.town6.layout.DefaultLayout) -> onegov.core.types.RenderData
.. py:class:: DirectoriesWidget
Bases: :py:obj:`onegov.org.homepage_widgets.DirectoriesWidget`
.. py:attribute:: template
:value: Multiline-String
.. raw:: html
Show Value
.. code-block:: python
"""
"""
.. raw:: html
.. py:class:: FocusWidget
.. py:attribute:: template
:value: Multiline-String
.. raw:: html
Show Value
.. code-block:: python
"""
"""
.. raw:: html
.. py:method:: get_variables(layout: onegov.town6.layout.DefaultLayout) -> onegov.core.types.RenderData
.. py:class:: TestimonialsWidget
.. py:attribute:: template
:value: Multiline-String
.. raw:: html
Show Value
.. code-block:: python
"""
"""
.. raw:: html
.. py:class:: TestimonialSliderWidget
.. py:attribute:: template
:value: Multiline-String
.. raw:: html
Show Value
.. code-block:: python
"""
"""
.. raw:: html
.. py:class:: JobsWidget
.. py:attribute:: template
:value: Multiline-String
.. raw:: html
Show Value
.. code-block:: python
"""
"""
.. raw:: html
.. py:method:: get_variables(layout: onegov.town6.layout.DefaultLayout) -> onegov.core.types.RenderData
.. py:class:: RSSItem
Bases: :py:obj:`NamedTuple`
The elements inside -
.. py:attribute:: title
:type: str
.. py:attribute:: description
:type: str
.. py:attribute:: guid
:type: str
.. py:attribute:: pubDate
:type: datetime.datetime | None
.. py:class:: RSSChannel
Bases: :py:obj:`NamedTuple`
The elements inside
.. py:attribute:: title
:type: str
.. py:attribute:: link
:type: str
.. py:attribute:: description
:type: str
.. py:attribute:: language
:type: str
.. py:attribute:: copyright
:type: str
.. py:attribute:: items
:type: collections.abc.Iterator[RSSItem]
.. py:function:: parsed_rss(rss: bytes) -> RSSChannel