-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.py
729 lines (579 loc) · 20.8 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
"""Configuration for the Application
Base configuration is defined in /config.py, but this file should be modified
only by developper. To deploy an application with specific parameters, use
instance/config.py.
WARNING: for production, some parameter MUST be modified (ADMINPWD, SECRET_KEY)
"""
# All configuration parameters defined in
# this file can be overriden in instance/config.py
import os
from os import environ
import subprocess
basedir = os.path.abspath(os.path.dirname(__file__))
FLASK_ENV = environ.get("FLASK_ENV")
"""What environment the app is running in.
See https://flask.palletsprojects.com/en/1.1.x/config/#ENV
:type: string
"""
FLASK_DEBUG = environ.get("FLASK_DEBUG")
"""Whether debug mode is enabled.
See https://flask.palletsprojects.com/en/1.1.x/config/#DEBUG
:type: boolean
"""
SECRET_KEY = environ.get("SECRET_KEY") or "'@GU^CpusZ0G2\"`=^QAt\rF]|('"
"""A secret key to securely sign the session cookie and other.
See https://flask.palletsprojects.com/en/1.1.x/config/#SECRET_KEY
To generate a new secret key:
>>> import random, string
>>> "".join([random.choice(string.printable) for _ in range(24)])
Secret key can also be set in instance/config.py
:type: string
"""
LOGGING_CONFIGURATION = f"{basedir}/logging.cfg"
"""Logging configuration file path.
File syntax is described here: `here <https://docs.python.org/3/library/logging.config.html#logging-config-fileformat>`_
:type: string"""
ADMINPWD = environ.get("ADMINPWD") or "foobar2"
"""Password for admin account
Will be set or reset at every application. Makes sure this is a secure password
in production.
:type: string
"""
AUTH_FAILURE_WAIT = 10
"""Time a user has to wait after a wrong auth in seconds
:type: int
"""
# User/password for accessing extranet API
default_wsdl = "https://extranet-clubalpin.com/app/soap/extranet_pro.wsdl"
EXTRANET_DISABLE = environ.get("EXTRANET_DISABLE")
"""Use a connection to FFCAM server to activate accounts.
Usually set to False for tests which don't have acces to FFCAM server such
as github CI tests.
:type: boolean
"""
EXTRANET_WSDL = environ.get("EXTRANET_WSDL") or default_wsdl
"""URL of WSDL to connect to FFCAM server
:type: string
"""
EXTRANET_ACCOUNT_ID = environ.get("EXTRANET_ACCOUNT_ID")
"""Account login for FFCAM extranet access
:type: string
"""
EXTRANET_ACCOUNT_PWD = environ.get("EXTRANET_ACCOUNT_PWD")
"""Account password for FFCAM extranet access
:type: string
"""
PAYMENTS_ENABLED = environ.get("PAYMENTS_ENABLED") or False
"""Whether to enable the payment-related functionalities
:type: bool
"""
REFUND_ENABLED = environ.get("REFUND_ENABLED") or False
"""Whether to enable refunding payments
:type: bool
"""
PAYMENTS_MAX_PRICE = 10000
"""Maximum price in euros for a payment item
:type: int
"""
PAYMENTS_TERMS_FILE = "caf/doc/cgv/2021-02-02 - CGV Collectives.pdf"
"""Path to the file containing the current payment terms and conditions
:type: string
"""
# Database
SQLALCHEMY_DATABASE_URI = environ.get(
"SQLALCHEMY_DATABASE_URI"
) or "sqlite:///" + os.path.join(basedir, "app.db")
"""Database URL
Set URL for SQLAlchemy database.
Can be sqlite: ``sqlite:///app.db``
or mysql: ``mysql+pymysql://username:password@localhost/db_name?charset=utf8mb4``
NB: When using mysql, charset must be specified to allow UTF8 character in test field.
:type: string
"""
SQLALCHEMY_TRACK_MODIFICATIONS = False
# SMTP (mail) configuration
SMTP_HOST = environ.get("SMTP_HOST") or "smtp.example.org"
"""Host SMTP to send mail
:type: string
"""
SMTP_PORT = environ.get("SMTP_PORT") or 25
"""TCP port for SMTP server
:type: int
"""
SMTP_ADDRESS = environ.get("SMTP_ADDRESS") or "noreply@example.org"
"""Sending address to send administration mails
Will be used as a reply address
:type: string
"""
SMTP_LOGIN = environ.get("SMTP_LOGIN") or None
"""SMTP login to be used
:type: string
"""
SMTP_PASSWORD = environ.get("SMTP_PASSWORD") or ""
"""SMTP password to be used along SMTP_LOGIN as login
:type: string
"""
DKIM_KEY = ""
"""DKIM private KEY
Contain the PEM encoded PKCS#8 format private key (not the file name, but its
content).
Empty DKIM_KEY or DKIM_SELECTOR disable DKIM signature
:type: string
"""
DKIM_SELECTOR = "default"
"""DKIM selector
:type: string
"""
# Payline
PAYLINE_WSDL = (
environ.get("PAYLINE_WSDL")
or f"file://{os.path.join(basedir, 'collectives/utils/payline.wsdl')}"
)
"""Path to WDSL file describing Payline WebPayment SOAP API
:type: string
"""
PAYLINE_DIRECTPAYMENT_WSDL = (
environ.get("PAYLINE_DIRECTPAYMENT_WSDL")
or f"file://{os.path.join(basedir, 'collectives/utils/payline_directpayment.wsdl')}"
)
"""Path to WDSL file describing Payline DirectPayment SOAP API
:type: string
"""
PAYLINE_MERCHANT_ID = environ.get("PAYLINE_MERCHANT_ID") or ""
"""Payline merchant id, refer to payline account.
If left empty the payline API will operate in mock mode.
:type: string
"""
PAYLINE_ACCESS_KEY = environ.get("PAYLINE_ACCESS_KEY") or ""
""" Payline access key (to be set in payline backoffice)
:type: string
"""
PAYLINE_CONTRACT_NUMBER = environ.get("PAYLINE_CONTRACT_NUMBER") or ""
""" Payline contract number
:type: string
"""
PAYLINE_MERCHANT_NAME = environ.get("PAYLINE_MERCHANT_NAME") or "CAF Annecy"
""" Payline merchant name
:type: string
"""
PAYLINE_CURRENCY = environ.get("PAYLINE_CURRENCY") or "978" # Default to euros
""" Code of the currency to be used for payments, '978' means euros
See https://docs.payline.com/display/DT/Codes+-+Currency
:type: string
"""
PAYLINE_COUNTRY = environ.get("PAYLINE_COUNTRY") or "FR" # Default to France
""" Code of the country in which the order are being made
See https://docs.payline.com/display/DT/Codes+-+Country
:type: string
"""
# Page information
TITLE = "Collectives CAF Annecy"
"""Website title
:type: string
"""
LOGO = "caf/caf-gris.png"
"""URL to the site logo
:type: string
"""
run = subprocess.run(
["git", "describe", "--tags"],
stdout=subprocess.PIPE,
check=False,
cwd=os.path.dirname(__file__),
)
VERSION = run.stdout.decode("utf-8")
# FAVICON= "img/icon/favicon.ico"
FAVICON = "caf/favicon.ico"
"""URL to the site favicon
:type: string
"""
GOOGLE_ANALYTICS_UA = False
""" Identifier for google analytics.
Set to False to deactivate it.
Example: `GOOGLE_ANALYTICS_UA = "UA-XXXXXXX-X"`
:type: string or boolean"""
CURRENT_LEGAL_TEXT_VERSION = 1
"""Current version of the legal text.
If a user has signed an earlier version, its signature will not be considered
valid.
:type: int"""
TZ_NAME = "Europe/Paris"
"""Timezone to use for time comparisons
:type: string
"""
# Activity type:
# fmt: off
ACTIVITY_TYPES = {
1: {"short": "ski_alpin", "name": "Ski et surf en station", "trigram" : "ASA"},
2: {"short": "escalade", "name": "Escalade", "trigram" : "AES"},
3: {"short": "ski_rando", "name": "Ski de randonnée", "trigram" : "ASM"},
4: {"short": "trail", "name": "Trail", "trigram" : "ATRAIL"},
5: {"short": "canyon", "name": "Canyon", "trigram" : "ACA"},
6: {"short": "raquette", "name": "Randonnée raquettes", "trigram" : "ARR"},
7: {"short": "snow_rando", "name": "Snow de randonnée", "trigram" : "ASUM"},
8: {"short": "cascade_glace", "name": "Cascade de glace", "trigram" : "AAL"},
9: {"short": "alpinisme", "name": "Alpinisme", "trigram" : "AAL"},
10: {"short": "parapente", "name": "Parapente", "trigram" : "AVR"},
11: {"short": "randonnee", "name": "Randonnée montagne", "trigram" : "ARP"},
12: {"short": "cyclisme", "name": "VTT", "trigram" : "AVTT"},
13: {"short": "formation", "name": "Formation", "trigram" : "FOR", "deprecated" : True},
14: {"short": "soiree", "name": "Soirée", "order": 99, "trigram" : "SCL", "deprecated" : True},
15: {"short": "none", "name": "Non classé", "order": 100, "trigram" : "NCL", "deprecated" : True},
16: {"short": "slackline", "name": "Slackline", "trigram" : "ASL"},
17: {"short": "marche_nordique", "name": "Marche nordique", "trigram" : "ANW"},
18: {"short": "ski_fond", "name": "Ski de fond et rando nordique", "trigram" : "ASF"},
20: {"short": "jeune", "name": "Jeunes", "trigram": "AJAL", "deprecated" : True},
21: {"short": "randonnees_lointaines", "name": "Randonnées lointaines", "trigram": "ARL", "deprecated" : True},
22: {"short": "viaferrata", "name": "Via ferrata", "trigram": "AVF"},
}
# fmt: on
"""List of activity type
Contains the list of activity type as a dictionnary. id is an int, value is
a hash. ``short`` is the name of the icon.
:type: dict
"""
GUIDE_TITLE = (
"guide d'organisation des sorties et des séjours du Club Alpin Français d'Annecy"
)
""" Name of the guide to accept to register to an event of most types.
:type: string """
GUIDE_FILENAME = "2022-02-01 - CAF Annecy Organisation des sorties.pdf"
""" Guide file name to accept to register to an event of most types.
:type: string """
# Event type:
EVENT_TYPES = {
1: {
"short": "collective",
"name": "Collective",
"requires_activity": True,
"terms_title": GUIDE_TITLE,
"terms_file": GUIDE_FILENAME,
},
2: {
"short": "jeune",
"name": "Jeunes",
"requires_activity": True,
"license_types": ["J1", "J2", "E1", "E2"],
"terms_title": GUIDE_TITLE,
"terms_file": GUIDE_FILENAME,
},
3: {
"short": "formation",
"name": "Formation",
"requires_activity": False,
"terms_title": GUIDE_TITLE,
"terms_file": GUIDE_FILENAME,
},
4: {
"short": "soiree",
"name": "Soirée",
"requires_activity": False,
"terms_title": GUIDE_TITLE,
"terms_file": GUIDE_FILENAME,
},
5: {
"short": "randonnees_lointaines",
"name": "Randonnées lointaines",
"requires_activity": True,
"terms_title": "guide d'organisation des randonnées lointaines du Club Alpin Français d'Annecy",
"terms_file": "2021-09-12_Organisation_Randonnées_Lointaines.pdf",
},
6: {"short": "shopping", "name": "Achat groupé", "requires_activity": False},
7: {
"short": "inscription",
"name": "Inscription en ligne",
"requires_activity": False,
"terms_title": GUIDE_TITLE,
"terms_file": GUIDE_FILENAME,
},
}
"""List of event types
Contains the list of event type as a dictionnary. id is an int, value is
a hash. ``short`` is the name of the icon.
:type: dict
"""
EVENT_TAGS = {
1: {"short": "tag_green_transport", "name": "Mobilité douce"},
2: {
"short": "tag_mountain_protection",
"name": "Connaissance et protection de la montagne",
},
3: {"short": "tag_trip", "name": "Séjour", "csv_code": "Séjour/WE"},
4: {"short": "tag_training", "name": "Formation", "deprecated": True},
5: {"short": "tag_rando_montagne", "name": "Randonnée alpine"},
6: {"short": "tag_handicaf", "name": "Handicaf"},
7: {"short": "tag_jeune_alpi", "name": "Groupe Jeunes Alpinistes"},
8: {"short": "tag_evenement", "name": "Evénement"},
9: {
"short": "tag_decouverte",
"name": "Cycle découverte",
"csv_code": "Débutant/Cycle Découverte",
},
10: {"short": "tag_rando_cool", "name": "Rando Cool"},
11: {"short": "tag_shopping", "name": "Achat", "deprecated": True},
}
LICENSE_CATEGORIES = {
"00": "Membre à vie",
"A1": "Membre de plus de 65 ans et cafiste depuis plus de 10 ans",
"C1": "Conjoint(e) de membre dans le même club",
"E1": "Enfant de 18 à 24 ans de membre dans le même club",
"E2": "Enfant ou petit-enfant de moins de 18 ans de membre dans le même club",
"J1": "Jeune de 18 à 24 ans",
"J2": "Jeune de moins de 18 ans",
"P1": "Professionel",
"T1": "Membre titulaire de plus de 24 ans",
}
"""Dictionary of FFCAM licence categories with their description
:type: dict
"""
# Technical stuff
MAX_FILE_SIZE = 2 * 1024 * 1024
""" Max size to upload files.
:type: int """
MAX_FILE_SIZE_MESSAGE = f"Le fichier est trop gros pour être chargé sur le serveur : [size] Mo. (max {MAX_FILE_SIZE/1024/1024} Mo)"
""" Error message if uploaded file is too big.
This error message is only used in form validation on client. `[size]` is a
placeholder which will be replaced by the actual size of the file.
:type: int """
UPLOADED_PHOTOS_DEST = os.path.join(basedir, "collectives/static/uploads")
"""Folder path for uploaded event photos.
:type: string
"""
UPLOADED_AVATARS_DEST = os.path.join(basedir, "collectives/static/uploads/avatars")
"""Folder path for uploaded user avatars.
"""
UPLOADED_IMGTYPEEQUIP_DEST = os.path.join(
basedir, "collectives/static/uploads/typeEquipmentImg"
)
"""Folder path for uploaded type images.
:type: string
"""
ALLOWED_EXTENSIONS = {"png", "jpg", "jpeg", "gif"}
""" Allowed extension for uploaded images
:type: array
"""
IMAGES_CACHE = os.path.join(basedir, "collectives/static/uploads/cache")
IMAGES_PATH = [
"static/uploads",
"static/uploads/avatars",
"static/uploads/typeEquipmentImg",
]
DESCRIPTION_TEMPLATE = """
{observations}
Secteur : {secteur}
Carte IGN : {carte_IGN}
Altitude max. : {altitude}m
Dénivelé : {denivele}m
Distance : {distance}km
Cotation : {cotation}
Lieu et heure de départ :
Matériel requis :
"""
"""Default event description template.
Place holder can be inserted, and will be used for CSV import.
:type: string"""
DEFAULT_ONLINE_SLOTS = environ.get("DEFAULT_ONLINE_SLOTS") or 0
""" Default number of slots for online subscription to an event
:type: int """
REGISTRATION_OPENING_DELTA_DAYS = environ.get("REGISTRATION_OPENING_DELTA_DAYS") or 7
""" Default number of days the online registration should start before the beginning of the event
:type: int """
REGISTRATION_OPENING_HOUR = environ.get("REGISTRATION_OPENING_HOUR") or 7
""" Default hour of the day the online registration should start before the beginning of the event
:type: int """
REGISTRATION_CLOSING_DELTA_DAYS = environ.get("REGISTRATION_CLOSING_DELTA_DAYS") or 1
""" Default number of days the online registration should end before the beginning of the event
:type: int """
REGISTRATION_CLOSING_HOUR = environ.get("REGISTRATION_CLOSING_HOUR") or 18
""" Default hour of the day the online registration should end before the beginning of the event
:type: int """
CSV_COLUMNS = {
"nom_encadrant": {
"short_desc": "Encadrant",
"description": "Prénom et nom de l'encadrant",
"type": "string",
},
"id_encadrant": {
"short_desc": "Numéro de licence",
"description": "Numéro de licence de l'encadrant",
"type": "int",
},
"debut": {
"short_desc": "Date de début",
"description": "Date de début de la collective au format jj/mm/yyyy hh:mm (ex: 31/12/2020 14:45)",
"type": "datetime",
},
"fin": {
"short_desc": "Date de fin",
"description": "Date de fin de la collective au format jj/mm/yyyy hh:mm (ex: 31/12/2020 14:45)",
"type": "datetime",
},
"titre": {
"short_desc": "Titre de la collective",
"description": "Titre de la collective",
"type": "string",
},
"secteur": {
"short_desc": "Secteur",
"description": "Secteur / massif de la collective (ex: Bornes / Aravis)",
"type": "string",
"optional": 1,
},
"carte_IGN": {
"short_desc": "Carte IGN",
"description": "Référence de la carte IGN",
"type": "string",
"optional": 1,
},
"altitude": {
"short_desc": "Altitude (en m)",
"description": "Altitude du sommet (en m)",
"type": "int",
"optional": 1,
},
"denivele": {
"short_desc": "Dénivelé (en m)",
"description": "Dénivelé total de la collective (en m)",
"type": "int",
"optional": 1,
},
"cotation": {
"short_desc": "Cotation",
"description": "Cotation / difficulté de la collective",
"type": "int",
"optional": 1,
},
"distance": {
"short_desc": "Distance (en km)",
"description": "Distance totale de la collective (en km)",
"type": "int",
"optional": 1,
},
"observations": {
"short_desc": "Observations",
"description": "Observations et description de la collective",
"type": "string",
"optional": 1,
},
"places": {
"short_desc": "Nombre de places",
"description": "Nombre de places",
"type": "int",
},
"places_internet": {
"short_desc": "Nombre de places par internet",
"description": "Nombre de places par internet",
"type": "int",
"optional": 1,
"default": str(DEFAULT_ONLINE_SLOTS),
},
"debut_internet": {
"short_desc": "Date d'ouverture des inscriptions par internet",
"description": "Date d'ouverture des inscriptions par internet de la collective au format jj/mm/yyyy hh:mm (ex: 31/12/2020 14:45)",
"type": "datetime",
"optional": 1,
"default": f"{REGISTRATION_OPENING_DELTA_DAYS}j avant la date de début de la collective à {REGISTRATION_OPENING_HOUR}h",
},
"fin_internet": {
"short_desc": "Date de fin des inscriptions par internet",
"description": "Date de fin des inscriptions par internet de la collective au format jj/mm/yyyy hh:mm (ex: 31/12/2020 14:45)",
"type": "datetime",
"optional": 1,
"default": f"{REGISTRATION_CLOSING_DELTA_DAYS}j avant la date de début de la collective à {REGISTRATION_CLOSING_HOUR}h",
},
"parent": {
"short_desc": "Collective parente",
"description": "ID (nombre) de la collective parente",
"type": "int",
"optional": 1,
"default": None,
},
}
"""Dictionnary of columns to import from CSV files.
Ordered list of columns. Dictionnary keys will be used as variables during csv import and can be inserted in description using place holders.\n
Key is the column name. And for each column:
- *short_desc*: is the human readable column name
- *description*: is a long description of the column, to be used in a documentation
- *type*: is the column value type (can be one of string, int or datetime)
- *optional*: if set to 1, column value is optional
- *default*: default value
:type: dict
"""
XLSX_TEMPLATE = os.path.join(basedir, "collectives/templates/exported_event.xlsx")
"""Path to Excel template.
:type: string
"""
TOKEN_DURATION = environ.get("TOKEN_DURATION") or 2
"""Duration (in hours) of a token before expiration
:type: int
"""
CONFIRMATION_MESSAGE = """
Bonjour {name},
Pour confirmer la {reason} de votre compte sur le site 'Collectives' du CAF d'Annecy, veuillez vous rendre à l'adresse ci-dessous :
{link}
Ce lien expirera après {expiry_hours} heures.
Ce mail est envoyé par un automate, répondre à ce mail sera sans effet.
"""
"""Template of confirmation email.
:type: string
"""
NEW_EVENT_SUBJECT = "Notification de création d'événement"
"""Email subject for event creation
:type: string
"""
NEW_EVENT_MESSAGE = """
Bonjour,
Une nouvel événement '{event_title}' a été crée par '{leader_name}' pour l'activité '{activity_name}'.
Vous pouvez le consulter à l'adresse ci-dessous :
{link}
Vous recevez cet e-mail en tant que Responsable de l'activité.
Cet e-mail est envoyé par un automate, répondre à cet e-mail sera sans effet.
"""
"""Email template content for event creation
:type: string
"""
SELF_UNREGISTER_SUBJECT = "Notification de désinscription"
"""Email subject for user self unregister
:type: string
"""
SELF_UNREGISTER_MESSAGE = """
Bonjour,
'{user_name}' vient de se désinscrire de l'événement '{event_title}' que vous encadrez.
Lien vers l'événement :
{link}
Vous recevez cet e-mail en tant qu'encadrant d'une activité.
Cet e-mail est envoyé par un automate, répondre à cet e-mail sera sans effet.
"""
"""Email template content for user self unregister
:type: string
"""
REJECTED_REGISTRATION_SUBJECT = "Refus d'insription à la collective {event_title}"
"""Email subject for rejected registration to an event
:type: string
"""
REJECTED_REGISTRATION_MESSAGE = """
Bonjour,
{rejector_name} vient de refuser votre inscription à la collective {event_title} débutant le {event_date}.
Lien vers l'événement :
{link}
Vous recevez cet e-mail en tant qu'adhérent inscrit à une collective.
Cet e-mail est envoyé par un automate, répondre à cet e-mail sera sans effet.
"""
"""Email template content for rejected registration to an event
:type: string
"""
CANCELLED_EVENT_SUBJECT = "Annulation de la collective {event_title}"
"""Email subject for registered users when an event is cancelled
:type: string
"""
CANCELLED_EVENT_MESSAGE = """
Bonjour,
{originator_name} vient d'annuler la collective {event_title} débutant le {event_date}.
Vous pouvez la consulter à l'adresse ci-dessous:
{link}
Vous recevez cet e-mail en tant qu'adhérent inscrit à cette collective.
Cet e-mail est envoyé par un automate, répondre à cet e-mail sera sans effet.
"""
"""Email template content for registered users when an event is cancelled
:type: string
"""