changeset 5008:5b18f4b603d9

Xapian2009: BaseIndex._indexingRequest() does not creates new request object, but copies existing.
author Dmitrijs Milajevs <dimazest@gmail.com>
date Fri, 14 Aug 2009 17:29:49 +0200
parents 2df0f9d09669
children cb9561447c78
files MoinMoin/search/builtin.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/search/builtin.py	Fri Aug 14 16:34:53 2009 +0200
+++ b/MoinMoin/search/builtin.py	Fri Aug 14 17:29:49 2009 +0200
@@ -406,16 +406,16 @@
 
         @param request: current request
         """
-        from MoinMoin.web.contexts import ScriptContext
+        import copy
         from MoinMoin.security import Permissions
         from MoinMoin.logfile import editlog
-        r = ScriptContext(request.url)
 
         class SecurityPolicy(Permissions):
 
             def read(self, *args, **kw):
                 return True
 
+        r = copy.copy(request)
         r.user.may = SecurityPolicy(r.user)
         r.editlog = editlog.EditLog(r)
         return r