changeset 2086:c8bc6df45964

Formatting fixes according to PEP 8.
author Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
date Sun, 03 Jun 2007 16:36:04 +0200
parents d72f126157f7
children a94187915111
files MoinMoin/events/EmailNotification.py MoinMoin/events/JabberNotification.py MoinMoin/events/__init__.py MoinMoin/events/notification_common.py
diffstat 4 files changed, 14 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/events/EmailNotification.py	Sat Jun 02 23:29:16 2007 +0200
+++ b/MoinMoin/events/EmailNotification.py	Sun Jun 03 16:36:04 2007 +0200
@@ -15,6 +15,7 @@
 from MoinMoin.events import *
 from MoinMoin.events.notification_common import page_changed_notification
 
+
 def sendNotification(request, page, comment, emails, email_lang, revisions, trivial):
     """ Send notification email for a single language.
 
@@ -71,6 +72,7 @@
     # No mail sent, no message.
     return ''
 
+
 def handle(event):
     if not isinstance(event, PageChangedEvent):
         return
--- a/MoinMoin/events/JabberNotification.py	Sat Jun 02 23:29:16 2007 +0200
+++ b/MoinMoin/events/JabberNotification.py	Sun Jun 03 16:36:04 2007 +0200
@@ -12,9 +12,11 @@
 from MoinMoin.events import PageEvent, PageChangedEvent
 from MoinMoin.events.notification_common import page_changed_notification
 
+
 # XML RPC Server object used to communicate with notification bot
 server = None
 
+
 def handle(event):
     global server
 
--- a/MoinMoin/events/__init__.py	Sat Jun 02 23:29:16 2007 +0200
+++ b/MoinMoin/events/__init__.py	Sun Jun 03 16:36:04 2007 +0200
@@ -13,20 +13,24 @@
 from MoinMoin.util import pysupport
 from MoinMoin.wikiutil import PluginAttributeError
 
+
 # A list of available event handlers
 event_handlers = None
 
 # Create a list of extension actions from the package directory
 modules = pysupport.getPackageModules(__file__)
 
+
 class Observable:
     """A class handling information common to all events."""
     
     def __init__(self, request):
         self.request = request
+
         
 class PageEvent(Observable):
     """An event related to a page change"""
+
         
 class PageChangedEvent(PageEvent):
     def __init__(self, request, page, comment, trivial):
@@ -34,6 +38,7 @@
         self.page = page
         self.comment = comment
         self.trivial = trivial
+
         
 class PageRenamedEvent(PageEvent):
     pass
@@ -42,6 +47,7 @@
 class FileAttachedEvent(PageEvent):
     pass
 
+
 class PageRevertedEvent(PageEvent):
     def __init__(self, request, pagename, previous, current):
         Observable.__init__(self, request)
@@ -49,12 +55,14 @@
         self.previous = previous
         self.current = current    
 
+
 class SubscribedToPageEvent(PageEvent):
     def __init__(self, request, pagename, username):
         Observable.__init__(self, request)    
         self.pagename = pagename
         self.username = username
 
+
 def register_handlers(cfg):
     """Create a list of available event handlers.
     
@@ -77,6 +85,7 @@
         if handler is not None:
             event_handlers.append(handler)
 
+
 def send_event(event):
     """Function called from outside to process an event"""
    
--- a/MoinMoin/events/notification_common.py	Sat Jun 02 23:29:16 2007 +0200
+++ b/MoinMoin/events/notification_common.py	Sun Jun 03 16:36:04 2007 +0200
@@ -12,6 +12,7 @@
 from MoinMoin import user, wikiutil
 from MoinMoin.Page import Page
 
+
 def page_changed_notification(request, page, comment, lang, revisions, trivial):
     """ Prepare a notification text for a single language