Modules collectives helpers
Contents
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
email (string) – Address where to send the email
name (string) – User name
token (
collectives.models.auth.ConfirmationToken
) – Account activation token
- collectives.email_templates.send_late_unregistration_notification(event, user)#
Send a notification to the user who recently unregistered lately from an event.
- Parameters
event (
collectives.modes.event.Event
) – The event from which the user recently unregistered.user (
collectives.models.user.User
) – The user who recently unregistered.
- 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_unjustified_absence_notification(event, user)#
Send a notification to the user who missed an event and got assigned an ‘UnjustifiedAbsentee’ registration status by the event organizer.
- Parameters
event (
collectives.modes.event.Event
) – The event that the user missed according to the event organizer.user (
collectives.models.user.User
) – The user who missed the event.
- collectives.email_templates.send_unregister_notification(event, user)#
Send a notification to leaders when a user unregisters from an event
- Parameters
event (
collectives.modes.event.Event
) – Event on which user unregisters.user (
collectives.models.user.User
) – User who unregisters.
- 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