org.models.message

Attributes

_MessageT

Classes

TicketMessageMixin

TicketNote

A single chat message bound to channel.

TicketChatMessage

Chat messages sent between the person in charge of the ticket and

TicketMessage

A single chat message bound to channel.

ReservationMessage

A single chat message bound to channel.

SubmissionMessage

A single chat message bound to channel.

EventMessage

A single chat message bound to channel.

PaymentMessage

A single chat message bound to channel.

DirectoryMessage

A single chat message bound to channel.

Module Contents

org.models.message._MessageT[source]
class org.models.message.TicketMessageMixin[source]
property ticket: onegov.ticket.Ticket | None[source]
classmethod create(ticket: onegov.ticket.Ticket, request: onegov.org.request.OrgRequest, text: str | None = None, owner: str | None = None, **extra_meta: Any) typing_extensions.Self[source]
class org.models.message.TicketNote[source]

Bases: onegov.chat.Message, TicketMessageMixin

A single chat message bound to channel.

__mapper_args__[source]
classmethod create(ticket: onegov.ticket.Ticket, request: onegov.org.request.OrgRequest, text: str, file: File | None = None, owner: str | None = None) typing_extensions.Self[source]
formatted_text(layout: onegov.org.layout.DefaultLayout) str[source]
class org.models.message.TicketChatMessage[source]

Bases: onegov.chat.Message, TicketMessageMixin

Chat messages sent between the person in charge of the ticket and the submitter of the ticket.

Paramters of note:

  • origin: ‘external’ or ‘internal’, to differentiate between the

    messages sent from the organisation to someone outside or from someone outside to someone inside.

  • notify: only relevant for messages originating from ‘internal’ - if the

    last sent message with origin ‘internal’ has this flag, a notification is sent to the owner of that message, whenever a new external reply comes in.

__mapper_args__[source]
classmethod create(ticket: onegov.ticket.Ticket, request: onegov.org.request.OrgRequest, text: str, owner: str, origin: str, notify: bool = False, recipient: str | None = None) typing_extensions.Self[source]
formatted_text(layout: onegov.org.layout.DefaultLayout) str[source]
property subtype: str | None[source]

An optional subtype for this message used for separating messages of a type further (currently for UI).

Should be made unique, but there’s no guarantee.

class org.models.message.TicketMessage[source]

Bases: onegov.chat.Message, TicketMessageMixin

A single chat message bound to channel.

__mapper_args__[source]
classmethod create(ticket: onegov.ticket.Ticket, request: onegov.org.request.OrgRequest, change: str, **extra_meta: Any) typing_extensions.Self[source]
class org.models.message.ReservationMessage[source]

Bases: onegov.chat.Message, TicketMessageMixin

A single chat message bound to channel.

__mapper_args__[source]
classmethod create(reservations: Iterable[Reservation], ticket: onegov.ticket.Ticket, request: onegov.org.request.OrgRequest, change: str) typing_extensions.Self[source]
class org.models.message.SubmissionMessage[source]

Bases: onegov.chat.Message, TicketMessageMixin

A single chat message bound to channel.

__mapper_args__[source]
classmethod create(ticket: onegov.ticket.Ticket, request: onegov.org.request.OrgRequest, change: str) typing_extensions.Self[source]
class org.models.message.EventMessage[source]

Bases: onegov.chat.Message, TicketMessageMixin

A single chat message bound to channel.

__mapper_args__[source]
classmethod create(event: onegov.event.Event, ticket: onegov.ticket.Ticket, request: onegov.org.request.OrgRequest, change: str) typing_extensions.Self[source]
class org.models.message.PaymentMessage[source]

Bases: onegov.chat.Message, TicketMessageMixin

A single chat message bound to channel.

__mapper_args__[source]
classmethod create(payment: onegov.pay.Payment, ticket: onegov.ticket.Ticket, request: onegov.org.request.OrgRequest, change: str) typing_extensions.Self[source]
class org.models.message.DirectoryMessage[source]

Bases: onegov.chat.Message, TicketMessageMixin

A single chat message bound to channel.

__mapper_args__[source]
classmethod create(directory: onegov.directory.Directory, ticket: onegov.ticket.Ticket, request: onegov.org.request.OrgRequest, action: str) typing_extensions.Self[source]