changeset 2877:384135a7bb0a

PageEditor.renamePage: bugfix added missing comment var
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Wed, 26 Sep 2007 17:45:30 +0200
parents 834ce71dddb3
children 455c3f051a2d
files MoinMoin/PageEditor.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/PageEditor.py	Wed Sep 26 17:01:54 2007 +0200
+++ b/MoinMoin/PageEditor.py	Wed Sep 26 17:45:30 2007 +0200
@@ -604,6 +604,8 @@
         try:
             os.rename(oldpath, newpath)
             self.error = None
+            if not comment:
+                comment = u"## page was renamed from %s" % self.page_name
             # Save page text with a comment about the old name
             savetext = u"## page was renamed from %s\n%s" % (self.page_name, savetext)
             newpage.saveText(savetext, 0, comment=comment, extra=self.page_name, action='SAVE/RENAME', notify=False)