diff MoinMoin/events/__init__.py @ 2469:663867be4afc

Add a separate TrivialPageChangedEvent users can subscribe to.
author Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
date Fri, 20 Jul 2007 02:57:25 +0200
parents 31b3d03bd1ea
children 5b8e8e7db56f
line wrap: on
line diff
--- a/MoinMoin/events/__init__.py	Fri Jul 20 02:07:09 2007 +0200
+++ b/MoinMoin/events/__init__.py	Fri Jul 20 02:57:25 2007 +0200
@@ -41,14 +41,24 @@
 
 class PageChangedEvent(PageEvent):
 
-    description = _(u"""Page has been modified (edit, creation, deletion)""")
+    description = _(u"""Page has been modified""")
     req_superuser = False
 
-    def __init__(self, request, page, comment, trivial):
+    def __init__(self, request, page, comment):
         PageEvent.__init__(self, request)
         self.page = page
         self.comment = comment
-        self.trivial = trivial
+
+
+class TrivialPageChangedEvent(PageEvent):
+
+    description = _(u"Page has been modified in a trivial fashion")
+    req_superuser = False
+
+    def __init__(self, request, page, comment):
+        PageEvent.__init__(self, request)
+        self.page = page
+        self.comment = comment
 
 
 class PageRenamedEvent(PageEvent):