3
0
Fork 0

fix: add is_enabled() method for email handler, to check per type

also add some more descriptive errors when email template not found,
body empty
This commit is contained in:
Lance Edgar 2024-12-19 18:20:57 -06:00
parent 089d9d7ec6
commit 902412322e
3 changed files with 152 additions and 21 deletions

View file

@ -191,6 +191,17 @@ Glossary
Default is :class:`~wuttjamaican.email.handler.EmailHandler`.
email key
String idenfier for a certain :term:`email type`. Each email key
must be unique across the app, so the correct template files and
other settings are used when sending etc.
email type
The :term:`app` is capable of sending many types of emails,
e.g. daily reports, alerts of various kinds etc. Each "type" of
email then will have its own template(s) and sender/recipient
settings etc. See also :term:`email key`.
entry point
This refers to a "setuptools-style" entry point specifically,
which is a mechanism used to register "plugins" and the like.