From: Matthijs Kooijman Date: Sat, 31 Jan 2009 13:27:02 +0000 (+0100) Subject: Merge branch 'production' X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fprojects%2Fxerxes.git;a=commitdiff_plain;h=d0284ad0db06a4e81bc340619122d6d59abefed7 Merge branch 'production' * production: Reconnect the influence_saved notify handler. --- d0284ad0db06a4e81bc340619122d6d59abefed7 diff --cc influences/notify.py index 3b5d874,ddcf37c..d53ab36 --- a/influences/notify.py +++ b/influences/notify.py @@@ -17,12 -17,12 +17,14 @@@ signals.post_save.connect(character_sav def influence_saved(**kwargs): instance = kwargs['instance'] created = kwargs['created'] + recipients = ['lextalionis@evolution-events.nl'] + recipients.extend(instance.related_players.keys()) if (not settings.DEBUG): # TODO: Perhaps only notify when the status is / becomes Done? - notify([instance.character.player, 'lextalionis@evolution-events.nl'], 'influences/email/influence_changed.html', {'influence' : instance, 'created' : created}) + notify(recipients, 'influences/email/influence_changed.html', {'influence' : instance, 'created' : created}) + signals.post_save.connect(influence_saved, sender=Influence) + def comment_saved(**kwargs): if (settings.DEBUG): return