Show
Ignore:
Timestamp:
09/05/08 22:58:17 (18 months ago)
Author:
cmlenz
Message:

Some early and rough support for OpenID 2, minus the XRI/Yadis stuff.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/examples/divan/divan/moderation.py

    r190 r200  
    4949def notify(post, reaction): 
    5050    # Send an email to someone who can review and maybe publish the comment 
    51     if smtp_configured(): 
     51    recipients = [addr.strip() for addr in 
     52                  app.config.get('moderation_email_to', '').split(',')] 
     53    if recipients and smtp_configured(): 
    5254        template = app.templates.load('moderation/notification.txt', 
    5355                                      cls=NewTextTemplate) 
     
    6163            ), 
    6264            body = body, 
    63             from_address = 'noreply@cmlenz.net' 
     65            recipients = recipients 
    6466        ) 
    6567