org.views.ticket

Functions

view_ticket(→ onegov.core.types.RenderData)

delete_ticket(→ RenderData | BaseResponse)

Deleting a ticket means getting rid of all the data associated with it

manual_payment_button(→ onegov.core.elements.Link)

stripe_payment_button(→ onegov.core.elements.Link | None)

send_email_if_enabled(→ bool)

last_internal_message(→ onegov.chat.Message | None)

send_chat_message_email_if_enabled(, attachments)

send_new_note_notification(→ None)

Sends an E-mail notification to all resource recipients that have been

handle_new_note(→ RenderData | BaseResponse)

view_ticket_note(→ webob.Response)

delete_ticket_note(→ None)

handle_edit_note(→ RenderData | BaseResponse)

accept_ticket(→ webob.Response)

close_ticket(→ webob.Response)

reopen_ticket(→ webob.Response)

mute_ticket(→ webob.Response)

unmute_ticket(→ webob.Response)

archive_ticket(→ webob.Response)

unarchive_ticket(→ webob.Response)

assign_ticket(→ RenderData | BaseResponse)

message_to_submitter(→ RenderData | BaseResponse)

create_attachment_from_uploaded(...)

view_ticket_pdf(→ morepath.Response)

View the generated PDF.

view_ticket_files(→ webob.Response)

Download the files associated with the ticket as zip.

view_ticket_status(→ RenderData | BaseResponse)

view_send_to_gever(→ webob.Response)

get_filters(→ Iterator[Link])

get_groups(→ Iterator[Link])

get_handlers(→ Iterator[Link])

get_owners(→ Iterator[Link])

groups_by_handler_code(→ dict[str, list[str]])

view_tickets(→ onegov.core.types.RenderData)

view_archived_tickets(→ onegov.core.types.RenderData)

view_delete_all_archived_tickets(→ None)

delete_tickets_and_related_data(...)

delete_messages_from_ticket(→ None)

view_pending_tickets(→ onegov.core.types.RenderData)

Module Contents

org.views.ticket.view_ticket(self: onegov.ticket.Ticket, request: onegov.org.request.OrgRequest, layout: onegov.org.layout.TicketLayout | None = None) onegov.core.types.RenderData[source]
org.views.ticket.delete_ticket(self: onegov.ticket.Ticket, request: onegov.org.request.OrgRequest, form: onegov.form.Form, layout: onegov.org.layout.TicketLayout | None = None) RenderData | BaseResponse[source]

Deleting a ticket means getting rid of all the data associated with it

org.views.ticket.manual_payment_button(payment: onegov.pay.Payment, layout: onegov.org.layout.Layout) onegov.core.elements.Link[source]
org.views.ticket.stripe_payment_button(payment: onegov.pay.Payment, layout: onegov.org.layout.Layout) onegov.core.elements.Link | None[source]
org.views.ticket.send_email_if_enabled(ticket: onegov.ticket.Ticket, request: onegov.org.request.OrgRequest, template: str, subject: str) bool[source]
org.views.ticket.last_internal_message(session: sqlalchemy.orm.Session, ticket_number: str) onegov.chat.Message | None[source]
org.views.ticket.send_chat_message_email_if_enabled(ticket: onegov.ticket.Ticket, request: onegov.org.request.OrgRequest, message: onegov.org.models.TicketChatMessage, origin: str, bcc: SequenceOrScalar[Address | str] = (), attachments: Iterable[Attachment | StrPath] = ()) None[source]
org.views.ticket.send_new_note_notification(request: onegov.org.request.OrgRequest, form: onegov.org.forms.TicketNoteForm, note: onegov.org.models.TicketNote, template: str) None[source]

Sends an E-mail notification to all resource recipients that have been configured to receive notifications for new (ticket) notes.

org.views.ticket.handle_new_note(self: onegov.ticket.Ticket, request: onegov.org.request.OrgRequest, form: onegov.org.forms.TicketNoteForm, layout: onegov.org.layout.TicketNoteLayout | None = None) RenderData | BaseResponse[source]
org.views.ticket.view_ticket_note(self: onegov.org.models.TicketNote, request: onegov.org.request.OrgRequest) webob.Response[source]
org.views.ticket.delete_ticket_note(self: onegov.org.models.TicketNote, request: onegov.org.request.OrgRequest) None[source]
org.views.ticket.handle_edit_note(self: onegov.org.models.TicketNote, request: onegov.org.request.OrgRequest, form: onegov.org.forms.TicketNoteForm, layout: onegov.org.layout.TicketNoteLayout | None = None) RenderData | BaseResponse[source]
org.views.ticket.accept_ticket(self: onegov.ticket.Ticket, request: onegov.org.request.OrgRequest) webob.Response[source]
org.views.ticket.close_ticket(self: onegov.ticket.Ticket, request: onegov.org.request.OrgRequest) webob.Response[source]
org.views.ticket.reopen_ticket(self: onegov.ticket.Ticket, request: onegov.org.request.OrgRequest) webob.Response[source]
org.views.ticket.mute_ticket(self: onegov.ticket.Ticket, request: onegov.org.request.OrgRequest) webob.Response[source]
org.views.ticket.unmute_ticket(self: onegov.ticket.Ticket, request: onegov.org.request.OrgRequest) webob.Response[source]
org.views.ticket.archive_ticket(self: onegov.ticket.Ticket, request: onegov.org.request.OrgRequest) webob.Response[source]
org.views.ticket.unarchive_ticket(self: onegov.ticket.Ticket, request: onegov.org.request.OrgRequest) webob.Response[source]
org.views.ticket.assign_ticket(self: onegov.ticket.Ticket, request: onegov.org.request.OrgRequest, form: onegov.org.forms.TicketAssignmentForm, layout: onegov.org.layout.TicketLayout | None = None) RenderData | BaseResponse[source]
org.views.ticket.message_to_submitter(self: onegov.ticket.Ticket, request: onegov.org.request.OrgRequest, form: onegov.org.forms.ExtendedInternalTicketChatMessageForm, layout: onegov.org.layout.TicketChatMessageLayout | None = None) RenderData | BaseResponse[source]
org.views.ticket.create_attachment_from_uploaded(fe: onegov.form.fields.UploadFileWithORMSupport, request: onegov.org.request.OrgRequest) tuple[onegov.core.mail.Attachment, Ellipsis][source]
org.views.ticket.view_ticket_pdf(self: onegov.ticket.Ticket, request: onegov.org.request.OrgRequest) morepath.Response[source]

View the generated PDF.

org.views.ticket.view_ticket_files(self: onegov.ticket.Ticket, request: onegov.org.request.OrgRequest) webob.Response[source]

Download the files associated with the ticket as zip.

org.views.ticket.view_ticket_status(self: onegov.ticket.Ticket, request: onegov.org.request.OrgRequest, form: onegov.org.forms.TicketChatMessageForm, layout: onegov.org.layout.TicketChatMessageLayout | None = None) RenderData | BaseResponse[source]
org.views.ticket.view_send_to_gever(self: onegov.ticket.Ticket, request: onegov.org.request.OrgRequest) webob.Response[source]
org.views.ticket.get_filters(self: onegov.ticket.TicketCollection, request: onegov.org.request.OrgRequest) Iterator[Link][source]
org.views.ticket.get_groups(self: onegov.ticket.TicketCollection | onegov.ticket.collection.ArchivedTicketCollection, request: onegov.org.request.OrgRequest, groups: Mapping[str, Iterable[str]], handler: str) Iterator[Link][source]
org.views.ticket.get_handlers(self: onegov.ticket.TicketCollection | onegov.ticket.collection.ArchivedTicketCollection, request: onegov.org.request.OrgRequest, groups: Mapping[str, Iterable[str]]) Iterator[Link][source]
org.views.ticket.get_owners(self: onegov.ticket.TicketCollection | onegov.ticket.collection.ArchivedTicketCollection, request: onegov.org.request.OrgRequest) Iterator[Link][source]
org.views.ticket.groups_by_handler_code(session: sqlalchemy.orm.Session) dict[str, list[str]][source]
org.views.ticket.view_tickets(self: onegov.ticket.TicketCollection, request: onegov.org.request.OrgRequest, layout: onegov.org.layout.TicketsLayout | None = None) onegov.core.types.RenderData[source]
org.views.ticket.view_archived_tickets(self: onegov.ticket.collection.ArchivedTicketCollection, request: onegov.org.request.OrgRequest, layout: onegov.org.layout.ArchivedTicketsLayout | None = None) onegov.core.types.RenderData[source]
org.views.ticket.view_delete_all_archived_tickets(self: onegov.ticket.collection.ArchivedTicketCollection, request: onegov.org.request.OrgRequest) None[source]
org.views.ticket.delete_messages_from_ticket(request: onegov.core.request.CoreRequest, number: str) None[source]
org.views.ticket.view_pending_tickets(self: onegov.org.models.resource.FindYourSpotCollection, request: onegov.org.request.OrgRequest, layout: onegov.org.layout.FindYourSpotLayout | None = None) onegov.core.types.RenderData[source]