changeset 2168:f10336f74a6e

Make function names pep8-compatible.
author Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
date Mon, 18 Jun 2007 17:28:14 +0200
parents 37e16cdc3a84
children 8aad85519f76
files MoinMoin/events/emailnotify.py
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/events/emailnotify.py	Mon Jun 18 17:27:30 2007 +0200
+++ b/MoinMoin/events/emailnotify.py	Mon Jun 18 17:28:14 2007 +0200
@@ -16,7 +16,7 @@
 from MoinMoin.events.messages import page_change_message
 
 
-def sendNotification(request, page, comment, emails, email_lang, revisions, trivial):
+def send_notification(request, page, comment, emails, email_lang, revisions, trivial):
     """ Send notification email for a single language.
 
     @param comment: editor's comment given when saving the page
@@ -41,7 +41,7 @@
         mailBody, mail_from=page.cfg.mail_from)
 
 
-def notifySubscribers(request, page, comment, trivial):
+def notify_subscribers(request, page, comment, trivial):
     """ Send email to all subscribers of given page.
 
     @param comment: editor's comment given when saving the page
@@ -61,7 +61,7 @@
         for lang in subscribers:
             emails = [u.email for u in subscribers[lang]]
             names = [u.name for u in subscribers[lang]]
-            mailok, status = sendNotification(request, page, comment, emails, lang, revisions, trivial)
+            mailok, status = send_notification(request, page, comment, emails, lang, revisions, trivial)
             recipients = ", ".join(names)
             results.append(_('[%(lang)s] %(recipients)s: %(status)s') % {
                 'lang': lang, 'recipients': recipients, 'status': status})
@@ -81,4 +81,4 @@
     if not event.request.cfg.mail_enabled:
         return
     
-    return notifySubscribers(event.request, event.page, event.comment, event.trivial)
+    return notify_subscribers(event.request, event.page, event.comment, event.trivial)