changeset 2202:f1972e32313a

for SAVE/RENAME log entries we also announce the old pagename in news()
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 07 May 2007 20:55:57 +0200
parents 4ef3b19e11e5
children 7f76fff062c8
files MoinMoin/logfile/editlog.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/logfile/editlog.py	Mon May 07 16:44:36 2007 +0200
+++ b/MoinMoin/logfile/editlog.py	Mon May 07 20:55:57 2007 +0200
@@ -233,6 +233,8 @@
         items = []
         for line in self:
             items.append(line.pagename)
+            if line.action == 'SAVE/RENAME':
+                items.append(line.extra) # == old page name
 
         newposition = self.position()
         logging.log(logging.NOTSET, "editlog.news: new pos: %r new items: %r", newposition, items)