changeset 158:93083cc8f27b

move loadTheme() call to run() to have better exception handling imported from: moin--main--1.5--patch-160
author Thomas Waldmann <tw@waldmann-edv.de>
date Sat, 29 Oct 2005 22:41:12 +0000
parents 99bf20eeb0bc
children 74bcce9d3dae
files MoinMoin/request.py
diffstat 1 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/request.py	Sat Oct 29 21:30:56 2005 +0000
+++ b/MoinMoin/request.py	Sat Oct 29 22:41:12 2005 +0000
@@ -140,13 +140,6 @@
 
             from MoinMoin import i18n
 
-            # Set theme - forced theme, user theme or wiki default
-            if self.cfg.theme_force:
-                theme_name = self.cfg.theme_default
-            else:
-                theme_name = self.user.theme_name
-            self.loadTheme(theme_name)
-            
             self.logger = None
             self.pragma = {}
             self.mode_getpagelinks = 0
@@ -927,6 +920,13 @@
 
         # parse request data
         try:
+            # Set theme - forced theme, user theme or wiki default
+            if self.cfg.theme_force:
+                theme_name = self.cfg.theme_default
+            else:
+                theme_name = self.user.theme_name
+            self.loadTheme(theme_name)
+            
             self.args = self.setup_args()
             self.form = self.args    
             action = self.form.get('action',[None])[0]