changeset 2879:07cd2b5f0fb9

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