changeset 5867:9fd0e9e1b4a5

add more missing attributes to FakeRequest
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 22 Jul 2012 20:44:48 +0200
parents aba21f8db240
children fc11712e0df0
files MoinMoin/search/builtin.py
diffstat 1 files changed, 22 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/search/builtin.py	Wed Jul 04 14:51:04 2012 +0200
+++ b/MoinMoin/search/builtin.py	Sun Jul 22 20:44:48 2012 +0200
@@ -281,14 +281,34 @@
             """ minimal request object for indexing code """
 
         r = FakeRequest()
+        r.action = request.action
         r.cfg = request.cfg
+        r.clock = request.clock
+        r.current_lang = request.current_lang
+        r.dicts = request.dicts
+        r.form = request.form
+        r.getPragma = request.getPragma
+        r.getText = request.getText
+        r.href = request.href
+        r.html_formatter = request.html_formatter
+        r.isSpiderAgent = request.isSpiderAgent
+        r.mode_getpagelinks = request.mode_getpagelinks
         r.page = request.page
+        r.parsePageLinks_running = request.parsePageLinks_running
+        r.redirect = request.redirect
+        r.redirectedOutput = request.redirectedOutput
+        r.rev = request.rev
         r.rootpage = request.rootpage
-        r.getPragma = request.getPragma
+        r.script_root = request.script_root
+        r.session = request.session
+        r.setContentLanguage = request.setContentLanguage
         r.setPragma = request.setPragma
-        r.parsePageLinks_running = {}
+        r.theme = request.theme
+        r.uid_generator = request.uid_generator
         r.user = User(request)
         r.user.may = SecurityPolicy(r.user)
+        r.values = request.values
+        r.write = request.write
         return r