Changeset 200 for trunk/examples/divan/divan/moderation.py
- Timestamp:
- 09/05/08 22:58:17 (18 months ago)
- Files:
-
- 1 modified
-
trunk/examples/divan/divan/moderation.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/divan/divan/moderation.py
r190 r200 49 49 def notify(post, reaction): 50 50 # 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(): 52 54 template = app.templates.load('moderation/notification.txt', 53 55 cls=NewTextTemplate) … … 61 63 ), 62 64 body = body, 63 from_address = 'noreply@cmlenz.net'65 recipients = recipients 64 66 ) 65 67
