diff MoinMoin/events/__init__.py @ 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 636e646f909b
children 7af58454aafa
line wrap: on
line diff
--- 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"""