changeset 261:5cece25f6406

Moved initTheme from moin_dump to requestCLI.__init__. Fixes e.g. tests. imported from: moin--main--1.5--patch-264
author Alexander Schremmer <alex@alexanderweb.de.tla>
date Thu, 01 Dec 2005 22:23:51 +0000
parents 3d8df5b91504
children 8af373350823
files MoinMoin/request.py MoinMoin/scripts/moin_dump.py
diffstat 2 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/request.py	Thu Dec 01 22:22:29 2005 +0000
+++ b/MoinMoin/request.py	Thu Dec 01 22:23:51 2005 +0000
@@ -1551,6 +1551,7 @@
         self.script_name = '.'
         RequestBase.__init__(self, properties)
         self.cfg.caching_formats = [] # don't spoil the cache
+        self.initTheme() # usually request.run() does this, but we don't use it
   
     def read(self, n=None):
         """ Read from input stream.
--- a/MoinMoin/scripts/moin_dump.py	Thu Dec 01 22:22:29 2005 +0000
+++ b/MoinMoin/scripts/moin_dump.py	Thu Dec 01 22:23:51 2005 +0000
@@ -131,8 +131,6 @@
         original_url_prefix = request.cfg.url_prefix
         request.cfg.url_prefix = url_prefix
 
-        request.initTheme() # usually request.run() does this, but we don't use it
-
         if self.options.page:
             pages = [self.options.page]
         else: