view MoinMoin/events/EmailNotification.py @ 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
children c60fcb00dfa6
line wrap: on
line source
# -*- 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