comparison MoinMoin/events/emailnotify.py @ 5126:02234c0ac784

include comment in email notifies
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 05 Sep 2009 22:12:27 +0200
parents 68628fe3b091
children 12d27670e274
comparison
equal deleted inserted replaced
5125:b8d919e435d5 5126:02234c0ac784
49 'sitename': page.cfg.sitename or "Wiki", 49 'sitename': page.cfg.sitename or "Wiki",
50 'pagename': page.page_name, 50 'pagename': page.page_name,
51 'username': page.uid_override or user.getUserIdentification(request), 51 'username': page.uid_override or user.getUserIdentification(request),
52 } 52 }
53 53
54 return {'subject': subject, 'text': change['text'] + pagelink + change['diff']} 54 if change.has_key('comment'):
55 comment = _("Comment:") + "\n" + change['comment'] + "\n\n"
56 else:
57 comment = ''
58
59 return {'subject': subject, 'text': change['text'] + pagelink + comment + change['diff']}
55 60
56 61
57 def send_notification(request, from_address, emails, data): 62 def send_notification(request, from_address, emails, data):
58 """ Send notification email 63 """ Send notification email
59 64