diff MoinMoin/events/__init__.py @ 2145:f153b3155240

Send notifications about creation of users to Superusers with JID set.
author Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
date Sun, 17 Jun 2007 02:44:13 +0200
parents b39379ab47d3
children cf4c4a3d6085
line wrap: on
line diff
--- a/MoinMoin/events/__init__.py	Sun Jun 17 02:43:34 2007 +0200
+++ b/MoinMoin/events/__init__.py	Sun Jun 17 02:44:13 2007 +0200
@@ -93,6 +93,13 @@
         Event.__init__(self, request)
         self.jid = jid
         
+class UserCreatedEvent(Event):
+    """ Sent when a new user has been created """
+    
+    def __init__(self, request, user):
+        Event.__init__(self, request)
+        self.user = user
+        
 def _register_handlers(cfg):
     """Create a list of available event handlers.