example.messaging

messaging.py

Celery worker to process outbound messaging

created 18-apr-2019 by richb@instantlinux.net

Functions

formatdate([timeval, localtime, usegmt])

Returns a date string as specified by RFC 2822, e.g.:

get_session([scopefunc, scoped, db_url, engine])

open a db session scoped to flask context or celery thread

make_msgid([idstring, domain])

Returns a string suitable for RFC 2822 compliant Message-ID, e.g:

Classes

AccountSettings(account_id, config, models)

Account Settings - converts db record to object attributes.

Contact(**kwargs)

MIMEMultipart([_subtype, boundary, …])

Base class for MIME multipart/* type messages.

MIMEText(_text[, _subtype, _charset, policy])

Class for generating text/* type MIME documents.

Person(**kwargs)

Profile(**kwargs)

datetime(year, month, day[, hour[, minute[, …)

The year, month and day arguments are required.

Exceptions

NoResultFound(*arg, **kw)

A database result was required but none was found.

SendException

exception example.messaging.SendException