org.models.message

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

class org.models.message.TicketMessageMixin[source]
meta: sqlalchemy.Column[dict[str, Any]][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) Self[source]
class org.models.message.TicketNote[source]

Bases: onegov.chat.Message, TicketMessageMixin

A single chat message bound to channel.

__mapper_args__[source]
text: sqlalchemy.Column[str][source]
classmethod create(ticket: onegov.ticket.Ticket, request: onegov.org.request.OrgRequest, text: str, file: File | None = None, owner: str | None = None) 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) 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) 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) 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) 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) 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) 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) Self[source]