changeset 2693:dde1f1ee1d80

Always add page name to results dict.
author Karol Nowak <grzywacz@sul.uni.lodz.pl>
date Fri, 17 Aug 2007 23:28:17 +0200
parents 42eaeb7584d0
children 6500951853e2
files MoinMoin/events/notification.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/events/notification.py	Fri Aug 17 04:30:40 2007 +0200
+++ b/MoinMoin/events/notification.py	Fri Aug 17 23:28:17 2007 +0200
@@ -73,7 +73,7 @@
     _ = request.getText
     page._ = lambda s, formatted=True, r=request, l=lang: r.getText(s, formatted=formatted, lang=l)
     querystr = {}
-    changes = {}
+    changes = {'page_name': page.page_name}
 
     if msgtype == "page_changed":
         revisions = kwargs['revisions']
@@ -125,7 +125,6 @@
         }
 
         changes['old_name'] = kwargs['old_name']
-        changes['page_name'] = page.page_name
 
     else:
         raise UnknownChangeType()