diff MoinMoin/events/__init__.py @ 2329:9a71ea0c941b

Add support for PageRenamed event. Not tested yet.
author Karol Nowak <grzywacz@sul.uni.lodz.pl>
date Tue, 26 Jun 2007 12:43:11 +0200
parents a43db0817020
children 10be78f1fa97
line wrap: on
line diff
--- a/MoinMoin/events/__init__.py	Tue Jun 26 10:46:24 2007 +0200
+++ b/MoinMoin/events/__init__.py	Tue Jun 26 12:43:11 2007 +0200
@@ -49,7 +49,15 @@
 
         
 class PageRenamedEvent(PageEvent):
-    pass
+    
+    description = u"""Page has been renamed"""
+    req_superuser = False
+    
+    def __init__(self, request, page, old_page, comment):
+        PageEvent.__init__(self, request)
+        self.page = page
+        self.old_page = old_page
+        self.comment = comment
 
 
 class PageDeletedEvent(PageEvent):