Mercurial > moin > 1.9
changeset 2059:855d73886dae
Add a pseudo-plugin for testing. Email notification from PageEditor will be
moved here.
author | Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl> |
---|---|
date | Tue, 29 May 2007 18:59:40 +0200 |
parents | fb6f1de06be0 |
children | 2976c757ee42 |
files | MoinMoin/events/EmailNotification.py |
diffstat | 1 files changed, 15 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/MoinMoin/events/EmailNotification.py Tue May 29 18:59:40 2007 +0200 @@ -0,0 +1,15 @@ +# -*- coding: iso-8859-1 -*- +""" + MoinMoin - email notification plugin from event system + + This code sends email notifications about page changes. + +@copyright: 2007 by Karol Nowak <grywacz@gmail.com> +@license: GNU GPL, see COPYING for details. +""" + +from MoinMoin.events import * + +def handle(event): + if event.__class__ is PageChangedEvent: + print event \ No newline at end of file