changeset 5864:aaf543f558d9

fix setPragma/getPragma AttributeError with FakeRequest
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 09 Jun 2012 17:15:47 +0200
parents 5f5faedac588
children dc3c0b894178
files MoinMoin/search/builtin.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/search/builtin.py	Sun Jun 03 01:59:03 2012 +0200
+++ b/MoinMoin/search/builtin.py	Sat Jun 09 17:15:47 2012 +0200
@@ -284,6 +284,8 @@
         r.cfg = request.cfg
         r.page = request.page
         r.rootpage = request.rootpage
+        r.getPragma = request.getPragma
+        r.setPragma = request.setPragma
         r.user = User(request)
         r.user.may = SecurityPolicy(r.user)
         return r