comparison MoinMoin/events/jabbernotify.py @ 2385:53fbdf5899ff

Use the event handling framework to (re)generate xapian indexes.
author Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
date Sat, 14 Jul 2007 18:42:12 +0200
parents 1d60f9aa07d1
children 5d1c31b0c6b5
comparison
equal deleted inserted replaced
2384:2b31b87db417 2385:53fbdf5899ff
119 page = event.page 119 page = event.page
120 old_name = event.old_page.page_name 120 old_name = event.old_page.page_name
121 121
122 subscribers = page.getSubscribers(request, return_users=1) 122 subscribers = page.getSubscribers(request, return_users=1)
123 notification.filter_subscriber_list(event, subscribers, True) 123 notification.filter_subscriber_list(event, subscribers, True)
124 return page_change("page_renamed", request, page, subscribers, oldname=old.page_name) 124 return page_change("page_renamed", request, page, subscribers, oldname=old_name)
125 125
126 126
127 def handle_user_created(event): 127 def handle_user_created(event):
128 """Handles an event sent when a new user is being created""" 128 """Handles an event sent when a new user is being created"""
129 129