feriennet.boardlets

Classes

FeriennetBoardlet

Base class used by all boardlets.

DisabledTicketBoardlet

Base class used by all boardlets.

DisabledEditedPagesBoardlet

Base class used by all boardlets.

DisabledEditedNewsBoardlet

Base class used by all boardlets.

DisabledPlausibleStats

Base class used by all boardlets.

DisabledPlausibleTopPages

Base class used by all boardlets.

PeriodBoardlet

Base class used by all boardlets.

ActivitiesBoardlet

Base class used by all boardlets.

BookingsBoardlet

Base class used by all boardlets.

AttendeesBoardlet

Base class used by all boardlets.

MatchingBoardlet

Base class used by all boardlets.

BillingPortlet

Base class used by all boardlets.

Module Contents

class feriennet.boardlets.FeriennetBoardlet(name: str, order: tuple[int, int], icon: str, request: onegov.org.request.OrgRequest)[source]

Bases: onegov.org.models.Boardlet

Base class used by all boardlets.

Use as follows:

from onegov.app import App

@App.boardlet(name='foo', order=(1, 1), icon='')
class MyBoardlet(Boardlet):
    pass
request: onegov.feriennet.request.FeriennetRequest[source]
property session: sqlalchemy.orm.Session[source]
property period: onegov.activity.models.PeriodMeta | None[source]
property layout: onegov.feriennet.layout.DefaultLayout[source]
property state: Literal['success', 'warning', 'failure'][source]

Yields one of three states:

  • ‘success’

  • ‘warning’

  • ‘failure’

class feriennet.boardlets.DisabledTicketBoardlet(name: str, order: tuple[int, int], icon: str, request: onegov.org.request.OrgRequest)[source]

Bases: onegov.org.boardlets.TicketBoardlet

Base class used by all boardlets.

Use as follows:

from onegov.app import App

@App.boardlet(name='foo', order=(1, 1), icon='')
class MyBoardlet(Boardlet):
    pass
property is_available: bool[source]

Returns true if the boardlet is active/has data.

class feriennet.boardlets.DisabledEditedPagesBoardlet(name: str, order: tuple[int, int], icon: str, request: onegov.org.request.OrgRequest)[source]

Bases: onegov.org.boardlets.EditedTopicsBoardlet

Base class used by all boardlets.

Use as follows:

from onegov.app import App

@App.boardlet(name='foo', order=(1, 1), icon='')
class MyBoardlet(Boardlet):
    pass
property is_available: bool[source]

Returns true if the boardlet is active/has data.

class feriennet.boardlets.DisabledEditedNewsBoardlet(name: str, order: tuple[int, int], icon: str, request: onegov.org.request.OrgRequest)[source]

Bases: onegov.org.boardlets.EditedNewsBoardlet

Base class used by all boardlets.

Use as follows:

from onegov.app import App

@App.boardlet(name='foo', order=(1, 1), icon='')
class MyBoardlet(Boardlet):
    pass
property is_available: bool[source]

Returns true if the boardlet is active/has data.

class feriennet.boardlets.DisabledPlausibleStats(name: str, order: tuple[int, int], icon: str, request: onegov.org.request.OrgRequest)[source]

Bases: onegov.org.boardlets.PlausibleStats

Base class used by all boardlets.

Use as follows:

from onegov.app import App

@App.boardlet(name='foo', order=(1, 1), icon='')
class MyBoardlet(Boardlet):
    pass
property is_available: bool[source]

Returns true if the boardlet is active/has data.

class feriennet.boardlets.DisabledPlausibleTopPages(name: str, order: tuple[int, int], icon: str, request: onegov.org.request.OrgRequest)[source]

Bases: onegov.org.boardlets.PlausibleTopPages

Base class used by all boardlets.

Use as follows:

from onegov.app import App

@App.boardlet(name='foo', order=(1, 1), icon='')
class MyBoardlet(Boardlet):
    pass
property is_available: bool[source]

Returns true if the boardlet is active/has data.

class feriennet.boardlets.PeriodBoardlet(name: str, order: tuple[int, int], icon: str, request: onegov.org.request.OrgRequest)[source]

Bases: FeriennetBoardlet

Base class used by all boardlets.

Use as follows:

from onegov.app import App

@App.boardlet(name='foo', order=(1, 1), icon='')
class MyBoardlet(Boardlet):
    pass
property title: str[source]

Returns the title of the boardlet, which is meant to be something meaningful, like the most important metric used in the boardlet.

property state: Literal['success', 'failure'][source]

Yields one of three states:

  • ‘success’

  • ‘warning’

  • ‘failure’

property facts: collections.abc.Iterator[onegov.org.models.BoardletFact][source]

Yields facts. (BoardletFact instances)

class feriennet.boardlets.ActivitiesBoardlet(name: str, order: tuple[int, int], icon: str, request: onegov.org.request.OrgRequest)[source]

Bases: FeriennetBoardlet

Base class used by all boardlets.

Use as follows:

from onegov.app import App

@App.boardlet(name='foo', order=(1, 1), icon='')
class MyBoardlet(Boardlet):
    pass
property occasions: sqlalchemy.orm.Query[onegov.activity.Occasion][source]
property occasions_count: int[source]
property activities_count: int[source]
occasion_states() dict[onegov.feriennet.collections.match.OccasionState, int][source]
property title: str[source]

Returns the title of the boardlet, which is meant to be something meaningful, like the most important metric used in the boardlet.

property state: Literal['success', 'warning', 'failure'][source]

Yields one of three states:

  • ‘success’

  • ‘warning’

  • ‘failure’

property facts: collections.abc.Iterator[onegov.org.models.BoardletFact][source]

Yields facts. (BoardletFact instances)

class feriennet.boardlets.BookingsBoardlet(name: str, order: tuple[int, int], icon: str, request: onegov.org.request.OrgRequest)[source]

Bases: FeriennetBoardlet

Base class used by all boardlets.

Use as follows:

from onegov.app import App

@App.boardlet(name='foo', order=(1, 1), icon='')
class MyBoardlet(Boardlet):
    pass
property counts: dict[onegov.activity.models.booking.BookingState | Literal['total'], int][source]
property attendees_count: int[source]
property title: str[source]

Returns the title of the boardlet, which is meant to be something meaningful, like the most important metric used in the boardlet.

property state: Literal['success', 'warning', 'failure'][source]

Yields one of three states:

  • ‘success’

  • ‘warning’

  • ‘failure’

property facts: collections.abc.Iterator[onegov.org.models.BoardletFact][source]

Yields facts. (BoardletFact instances)

class feriennet.boardlets.AttendeesBoardlet(name: str, order: tuple[int, int], icon: str, request: onegov.org.request.OrgRequest)[source]

Bases: FeriennetBoardlet

Base class used by all boardlets.

Use as follows:

from onegov.app import App

@App.boardlet(name='foo', order=(1, 1), icon='')
class MyBoardlet(Boardlet):
    pass
property attendee_counts: dict[str, int][source]
property title: str[source]

Returns the title of the boardlet, which is meant to be something meaningful, like the most important metric used in the boardlet.

property state: Literal['success', 'warning', 'failure'][source]

Yields one of three states:

  • ‘success’

  • ‘warning’

  • ‘failure’

property facts: collections.abc.Iterator[onegov.org.models.BoardletFact][source]

Yields facts. (BoardletFact instances)

class feriennet.boardlets.MatchingBoardlet(name: str, order: tuple[int, int], icon: str, request: onegov.org.request.OrgRequest)[source]

Bases: FeriennetBoardlet

Base class used by all boardlets.

Use as follows:

from onegov.app import App

@App.boardlet(name='foo', order=(1, 1), icon='')
class MyBoardlet(Boardlet):
    pass
property happiness: float[source]
property unlucky_count: int[source]
property title: str[source]

Returns the title of the boardlet, which is meant to be something meaningful, like the most important metric used in the boardlet.

property state: Literal['success', 'warning', 'failure'][source]

Yields one of three states:

  • ‘success’

  • ‘warning’

  • ‘failure’

property facts: collections.abc.Iterator[onegov.org.models.BoardletFact][source]

Yields facts. (BoardletFact instances)

class feriennet.boardlets.BillingPortlet(name: str, order: tuple[int, int], icon: str, request: onegov.org.request.OrgRequest)[source]

Bases: FeriennetBoardlet

Base class used by all boardlets.

Use as follows:

from onegov.app import App

@App.boardlet(name='foo', order=(1, 1), icon='')
class MyBoardlet(Boardlet):
    pass
property amounts: dict[str, decimal.Decimal][source]
property title: str[source]

Returns the title of the boardlet, which is meant to be something meaningful, like the most important metric used in the boardlet.

property state: Literal['success', 'warning', 'failure'][source]

Yields one of three states:

  • ‘success’

  • ‘warning’

  • ‘failure’

property facts: collections.abc.Iterator[onegov.org.models.BoardletFact][source]

Yields facts. (BoardletFact instances)