changeset 4257:29e81e73fe67

Replace request_cli with ScriptContext in MoinScript
author Florian Krupicka <florian.krupicka@googlemail.com>
date Thu, 31 Jul 2008 16:01:55 +0200
parents c9483e402491
children 3f8be25b79cc
files MoinMoin/script/__init__.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/script/__init__.py	Thu Jul 31 15:59:57 2008 +0200
+++ b/MoinMoin/script/__init__.py	Thu Jul 31 16:01:55 2008 +0200
@@ -173,11 +173,11 @@
 
     def init_request(self):
         """ create request """
-        from MoinMoin.request import request_cli
+        from MoinMoin.web.contexts import ScriptContext
         if self.options.wiki_url:
-            self.request = request_cli.Request(self.options.wiki_url, self.options.page)
+            self.request = ScriptContext(self.options.wiki_url, self.options.page)
         else:
-            self.request = request_cli.Request(pagename=self.options.page)
+            self.request = ScriptContext(pagename=self.options.page)
 
     def mainloop(self):
         # Insert config dir or the current directory to the start of the path.