changeset 3455:f0aaecb1a44d

script.maint.makecache: fixed request.page object
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Sun, 30 Mar 2008 19:56:16 +0200
parents 63fccc14c263
children 836d1706a5fe
files MoinMoin/script/maint/makecache.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/script/maint/makecache.py	Sun Mar 30 19:17:06 2008 +0200
+++ b/MoinMoin/script/maint/makecache.py	Sun Mar 30 19:56:16 2008 +0200
@@ -43,5 +43,7 @@
         # make cache related to pagelinks entries of a page
         pages = request.rootpage.getPageList(user='', exists=1)
         for pagename in pages:
-            p = Page(request, pagename).getPageLinks(request)
+            page = Page(request, pagename)
+            request.page = page
+            p = page.getPageLinks(request)