3
0
Fork 0

fix: move email stuff from subpackage to module

This commit is contained in:
Lance Edgar 2024-12-19 18:34:03 -06:00
parent 902412322e
commit 6c8f1c973d
14 changed files with 244 additions and 331 deletions

View file

@ -1,6 +0,0 @@
``wuttjamaican.email.handler``
==============================
.. automodule:: wuttjamaican.email.handler
:members:

View file

@ -1,6 +0,0 @@
``wuttjamaican.email.message``
==============================
.. automodule:: wuttjamaican.email.message
:members:

View file

@ -189,7 +189,7 @@ Glossary
The :term:`handler` responsible for sending email on behalf of
the :term:`app`.
Default is :class:`~wuttjamaican.email.handler.EmailHandler`.
Default is :class:`~wuttjamaican.email.EmailHandler`.
email key
String idenfier for a certain :term:`email type`. Each email key

View file

@ -82,8 +82,6 @@ Contents
api/wuttjamaican.db.sess
api/wuttjamaican.db.util
api/wuttjamaican.email
api/wuttjamaican.email.handler
api/wuttjamaican.email.message
api/wuttjamaican.enum
api/wuttjamaican.exc
api/wuttjamaican.install

View file

@ -50,9 +50,8 @@ for one or both of the ``text/plain`` and ``text/html`` content-types
(using ``txt`` and ``html`` as shorthand name, respectively).
Template files must use the :doc:`Mako template language <mako:index>`
and be named based on the
:attr:`~wuttjamaican.email.message.Message.key` for the email type, as
well as content-type.
and be named based on the :attr:`~wuttjamaican.email.Message.key` for
the email type, as well as content-type.
Therefore a new email of type ``poser_alert_foo`` would need one or
both of these defined: