changeset 1894:5ae7a098f6e4

RenamePage bugfix: clean caches of the new page (there is nothing at the old place anyway)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 18 Mar 2007 20:31:42 +0100
parents d367d585c837
children 46e859ee4d2e b5e94fec8669
files MoinMoin/PageEditor.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/PageEditor.py	Sun Mar 18 16:40:16 2007 +0100
+++ b/MoinMoin/PageEditor.py	Sun Mar 18 20:31:42 2007 +0100
@@ -596,14 +596,14 @@
             savetext = u"## page was renamed from %s\n%s" % (self.page_name, savetext)
             newpage.saveText(savetext, 0, comment=comment, index=0, extra=self.page_name, action='SAVE/RENAME')
             # delete pagelinks
-            arena = self
+            arena = newpage
             key = 'pagelinks'
             cache = caching.CacheEntry(request, arena, key, scope='item')
             cache.remove()
 
             # clean the cache
             for formatter_name in self.cfg.caching_formats:
-                arena = self
+                arena = newpage
                 key = formatter_name
                 cache = caching.CacheEntry(request, arena, key, scope='item')
                 cache.remove()