comparison 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
comparison
equal deleted inserted replaced
2468:4a199a4c5d31 2469:663867be4afc
39 Event.__init__(self, request) 39 Event.__init__(self, request)
40 40
41 41
42 class PageChangedEvent(PageEvent): 42 class PageChangedEvent(PageEvent):
43 43
44 description = _(u"""Page has been modified (edit, creation, deletion)""") 44 description = _(u"""Page has been modified""")
45 req_superuser = False 45 req_superuser = False
46 46
47 def __init__(self, request, page, comment, trivial): 47 def __init__(self, request, page, comment):
48 PageEvent.__init__(self, request) 48 PageEvent.__init__(self, request)
49 self.page = page 49 self.page = page
50 self.comment = comment 50 self.comment = comment
51 self.trivial = trivial 51
52
53 class TrivialPageChangedEvent(PageEvent):
54
55 description = _(u"Page has been modified in a trivial fashion")
56 req_superuser = False
57
58 def __init__(self, request, page, comment):
59 PageEvent.__init__(self, request)
60 self.page = page
61 self.comment = comment
52 62
53 63
54 class PageRenamedEvent(PageEvent): 64 class PageRenamedEvent(PageEvent):
55 65
56 description = _(u"""Page has been renamed""") 66 description = _(u"""Page has been renamed""")