]> git.ozlabs.org Git - patchwork/commit - templates/patchwork/patch-change-notification-subject.text
notifications: Add code to send notifications
authorJeremy Kerr <jk@ozlabs.org>
Tue, 29 Mar 2011 14:18:54 +0000 (22:18 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Thu, 14 Apr 2011 09:24:15 +0000 (17:24 +0800)
commitf94d40159168d0811de576328b77fd2a553039af
treef3e8b81347f832159462ef51437a49a192eea1e9
parent798a73b8bfb41f742e78e481ab9c961556e117b3
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>
apps/patchwork/bin/patchwork-cron.py [new file with mode: 0755]
apps/patchwork/tests/notifications.py
apps/patchwork/utils.py
apps/settings.py
templates/patchwork/patch-change-notification-subject.text [new file with mode: 0644]
templates/patchwork/patch-change-notification.mail [new file with mode: 0644]