changeset 272:d35743ee9865

request.form and request.args init moved to RequestBase.__init__() imported from: moin--main--1.5--patch-276
author Thomas Waldmann <tw@waldmann-edv.de>
date Fri, 02 Dec 2005 21:44:18 +0000
parents 186df6f00a36
children 714732e11d60
files MoinMoin/request.py
diffstat 1 files changed, 9 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/request.py	Fri Dec 02 15:21:43 2005 +0000
+++ b/MoinMoin/request.py	Fri Dec 02 21:44:18 2005 +0000
@@ -130,8 +130,11 @@
             #    # no extra path after script name
             #    rootname = u""
 
-            self.args = {}
-            self.form = {}
+            #self.args = {}
+            #self.form = {}
+
+            # MOVED: this was in run() method, but moved here for auth module being able to use it
+            self.args = self.form = self.setup_args()
 
             rootname = u''
             self.rootpage = Page(self, rootname, is_rootpage=1)
@@ -929,8 +932,10 @@
         try:
             self.initTheme()
             
-            self.args = self.setup_args()
-            self.form = self.args    
+            # MOVED: moved to __init__() for auth module being able to use it
+            #self.args = self.setup_args()
+            #self.form = self.args    
+            
             action = self.form.get('action',[None])[0]
 
             # Get pagename