Modules collectives helpers#

Module collectives.email_templates#

Templates for mails

collectives.email_templates.send_cancelled_event_notification(name, event)#

Send a notification to user whom event has been cancelled

Parameters
  • name (string) – User name who cancelled the event.

  • event (collectives.modes.event.Event) – Event that has been cancelled.

collectives.email_templates.send_confirmation_email(email, name, token)#

Send an email to user to confirm his account activation

Parameters
collectives.email_templates.send_new_event_notification(event)#

Send a notification to activity supervisor when a new event is created

Parameters

event (collectives.modes.event.Event) – The new created event.

collectives.email_templates.send_reject_subscription_notification(rejector_name, event, rejected_user_email)#

Send a notification to user whom registration has been rejected

Parameters
  • rejector_name (string) – User name who rejects the subscription.

  • event (collectives.modes.event.Event) – Event the registraton is rejected on.

  • rejected_user_email (string) – User email for who registraton is rejected.

collectives.email_templates.send_unregister_notification(event, user)#

Send a notification to leaders when a user unregisters from an event

Parameters
collectives.email_templates.send_update_waiting_list_notification(registration: collectives.models.registration.Registration, deleted_registrations: List[collectives.models.registration.Registration])#

Send a notification to user whom registration has been activated from waiting list

Parameters

registration – Activated registration