diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2011-03-29 22:18:54 +0800 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2011-04-14 17:24:15 +0800 |
commit | f94d40159168d0811de576328b77fd2a553039af (patch) | |
tree | f3e8b81347f832159462ef51437a49a192eea1e9 /apps/settings.py | |
parent | 798a73b8bfb41f742e78e481ab9c961556e117b3 (diff) | |
download | patchwork-f94d40159168d0811de576328b77fd2a553039af.tar.bz2 patchwork-f94d40159168d0811de576328b77fd2a553039af.tar.xz |
notifications: Add code to send notifications
Add a function (patchwork.utils.send_notifications) to process the
PatchChangeNotification queue. We try to group mail to the same sender,
by waiting settings.NOTIFICATION_DELAY_MINUTES to allow other
notifications to arrive.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'apps/settings.py')
-rw-r--r-- | apps/settings.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/settings.py b/apps/settings.py index 8f091d0..d5595e0 100644 --- a/apps/settings.py +++ b/apps/settings.py @@ -103,6 +103,8 @@ DEFAULT_FROM_EMAIL = 'Patchwork <patchwork@patchwork.example.com>' CONFIRMATION_VALIDITY_DAYS = 7 +NOTIFICATION_DELAY_MINUTES = 10 + # Set to True to enable the Patchwork XML-RPC interface ENABLE_XMLRPC = False |