Merge branch 'production'
authorMatthijs Kooijman <matthijs@stdin.nl>
Sat, 31 Jan 2009 13:27:02 +0000 (14:27 +0100)
committerMatthijs Kooijman <matthijs@stdin.nl>
Sat, 31 Jan 2009 13:27:02 +0000 (14:27 +0100)
* production:
  Reconnect the influence_saved notify handler.

1  2 
influences/notify.py

index 3b5d874b5239a6e05390307b5449c41edc867d9a,ddcf37cea7b06c5770e98ee5f8be0eec2e03fe07..d53ab36a51a9dd6377ec85c487ac62e68a3a6aac
@@@ -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