diff MoinMoin/events/__init__.py @ 2312:a85d51778eda

Remove a forgotten line, improve comment.
author Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
date Fri, 22 Jun 2007 17:58:23 +0200
parents fe37834deb3d
children 062b76cf8d48
line wrap: on
line diff
--- a/MoinMoin/events/__init__.py	Fri Jun 22 17:58:06 2007 +0200
+++ b/MoinMoin/events/__init__.py	Fri Jun 22 17:58:23 2007 +0200
@@ -145,16 +145,16 @@
 
 
 def send_event(event):
-    """Function called from outside to process an event"""
+    """Function called from outside to process an event
+    
+    @return: a list of messages returned by handlers
+    @rtype: list
+    """
    
     # A list of messages generated by event handlers, passed back to caller
     msg = []
     cfg = event.request.cfg
     
-    # Find all available event handlers
-    if cfg.event_handlers is None:
-        register_handlers(cfg)
-    
     # Try to handle the event with each available handler (for now)
     for handle in cfg.event_handlers:
         retval = handle(event)