diff MoinMoin/events/__init__.py @ 2106:1577663f6354

Notify when a new attachment is added to a page. s/JabberBot/jabberbot/.
author Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
date Thu, 07 Jun 2007 17:53:30 +0200
parents 258d6e648eca
children 645bbc7fe2b5
line wrap: on
line diff
--- a/MoinMoin/events/__init__.py	Thu Jun 07 12:43:31 2007 +0200
+++ b/MoinMoin/events/__init__.py	Thu Jun 07 17:53:30 2007 +0200
@@ -45,8 +45,14 @@
     pass
 class PageDeletedEvent(PageEvent):
     pass
+
+
 class FileAttachedEvent(PageEvent):
-    pass
+    def __init__(self, request, pagename, attachment_name, size):
+        self.request = request
+        self.pagename = pagename
+        self.attachment_name = attachment_name
+        self.size = size
 
 
 class PageRevertedEvent(PageEvent):