Mercurial > moin > 1.9
changeset 2060:2976c757ee42
Add the "events" plugin dir for future external plugins, alter PageEditor to
send an event on page save.
author | Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl> |
---|---|
date | Tue, 29 May 2007 19:00:28 +0200 |
parents | 855d73886dae |
children | 7547652ffb6f |
files | MoinMoin/PageEditor.py wiki/data/plugin/events/__init__.py |
diffstat | 2 files changed, 9 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/MoinMoin/PageEditor.py Tue May 29 18:59:40 2007 +0200 +++ b/MoinMoin/PageEditor.py Tue May 29 19:00:28 2007 +0200 @@ -26,7 +26,6 @@ from MoinMoin.util import filesys, timefuncs, web from MoinMoin.mail import sendmail - # used for merging conflict_markers = ("\n---- /!\\ '''Edit conflict - other version:''' ----\n", "\n---- /!\\ '''Edit conflict - your version:''' ----\n", @@ -1129,6 +1128,10 @@ # send notification mails if request.cfg.mail_enabled: msg = msg + self._notifySubscribers(comment, trivial) + + from MoinMoin import events + e = events.PageChangedEvent(request, self) + events.send_event(e) if kw.get('index', 1) and request.cfg.xapian_search: from MoinMoin.search.Xapian import Index