handlers.fact_sheet_deletion_mail_handler

@register_handler
class FactSheetDeletionMailHandler(handlers.eventhandler.EventHandler):

Whenever somebody archives a fact sheet, the admin team wants to be informed so they can double-check. So if we receive a FactSheetUpdatedEvent and the fact sheet has been archived, we send an e-mail to the mail address that is configured in the global configuration (Company level). Note that we don't send an e-mail if the acting user's e-mail address is listed in the exception list.

def handle(self, event, fact_sheet):

Called automatically whenever a FactSheetCreated or FactSheetUpdated event comes in via webhook.

Inherited Members
handlers.eventhandler.EventHandler
EventHandler
register
all_registered
is_active
get_event_types
get_fs_types
get