changeset 2144:05557f1ce219

Fix sending of email notifications after changes to messages.py
author Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
date Sun, 17 Jun 2007 02:43:34 +0200
parents ea091b3eedc2
children f153b3155240
files MoinMoin/events/emailnotify.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/events/emailnotify.py	Sat Jun 16 22:49:12 2007 +0200
+++ b/MoinMoin/events/emailnotify.py	Sun Jun 17 02:43:34 2007 +0200
@@ -13,7 +13,7 @@
 from MoinMoin.Page import Page
 from MoinMoin.mail import sendmail
 from MoinMoin.events import *
-from MoinMoin.events.notification_common import page_changed_notification
+from MoinMoin.events.messages import page_change_message
 
 
 def sendNotification(request, page, comment, emails, email_lang, revisions, trivial):
@@ -28,7 +28,8 @@
     @return: sendmail result
     """
     _ = request.getText
-    mailBody = page_changed_notification(request, page, comment, email_lang, revisions, trivial)
+    mailBody = page_change_message("page_changed", request, page, email_lang, 
+                                   comment=comment, revisions=revisions)
 
     return sendmail.sendmail(request, emails,
         _('[%(sitename)s] %(trivial)sUpdate of "%(pagename)s" by %(username)s', formatted=False) % {