annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2059
855d73886dae Add a pseudo-plugin for testing. Email notification from PageEditor will be
Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
parents:
diff changeset
1 # -*- coding: iso-8859-1 -*-
855d73886dae Add a pseudo-plugin for testing. Email notification from PageEditor will be
Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
parents:
diff changeset
2 """
855d73886dae Add a pseudo-plugin for testing. Email notification from PageEditor will be
Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
parents:
diff changeset
3 MoinMoin - email notification plugin from event system
855d73886dae Add a pseudo-plugin for testing. Email notification from PageEditor will be
Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
parents:
diff changeset
4
855d73886dae Add a pseudo-plugin for testing. Email notification from PageEditor will be
Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
parents:
diff changeset
5 This code sends email notifications about page changes.
855d73886dae Add a pseudo-plugin for testing. Email notification from PageEditor will be
Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
parents:
diff changeset
6
855d73886dae Add a pseudo-plugin for testing. Email notification from PageEditor will be
Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
parents:
diff changeset
7 @copyright: 2007 by Karol Nowak <grywacz@gmail.com>
855d73886dae Add a pseudo-plugin for testing. Email notification from PageEditor will be
Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
parents:
diff changeset
8 @license: GNU GPL, see COPYING for details.
855d73886dae Add a pseudo-plugin for testing. Email notification from PageEditor will be
Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
parents:
diff changeset
9 """
855d73886dae Add a pseudo-plugin for testing. Email notification from PageEditor will be
Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
parents:
diff changeset
10
855d73886dae Add a pseudo-plugin for testing. Email notification from PageEditor will be
Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
parents:
diff changeset
11 from MoinMoin.events import *
855d73886dae Add a pseudo-plugin for testing. Email notification from PageEditor will be
Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
parents:
diff changeset
12
855d73886dae Add a pseudo-plugin for testing. Email notification from PageEditor will be
Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
parents:
diff changeset
13 def handle(event):
855d73886dae Add a pseudo-plugin for testing. Email notification from PageEditor will be
Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
parents:
diff changeset
14 if event.__class__ is PageChangedEvent:
855d73886dae Add a pseudo-plugin for testing. Email notification from PageEditor will be
Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
parents:
diff changeset
15 print event