changeset 2874:de20fd4e2352

wikidictsrescan.handle: PageRenamedEvent added
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Wed, 26 Sep 2007 16:57:17 +0200
parents 71d89ce8b878
children 19aef8a04be6
files MoinMoin/events/wikidictsrescan.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/events/wikidictsrescan.py	Wed Sep 26 07:07:35 2007 +0200
+++ b/MoinMoin/events/wikidictsrescan.py	Wed Sep 26 16:57:17 2007 +0200
@@ -13,7 +13,7 @@
 from MoinMoin import wikidicts
 
 def handle(event):
-    if isinstance(event, ev.PageChangedEvent): # "changed" includes creation and deletion
+    if isinstance(event, ev.PageChangedEvent) or isinstance(event, ev.PageRenamedEvent): # "changed" includes creation, deletion and renamed
         cfg = event.request.cfg
         pagename = event.page.page_name
         if cfg.cache.page_dict_regex.search(pagename) or \