changeset 1751:95485f94760d

action/__init__.py:fixed wrong definition
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Sat, 27 Jan 2007 18:10:47 +0100
parents 88fa1ffd2574
children c0c1a4d9151d
files MoinMoin/action/__init__.py
diffstat 1 files changed, 4 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/action/__init__.py	Fri Jan 26 19:45:07 2007 +0100
+++ b/MoinMoin/action/__init__.py	Sat Jan 27 18:10:47 2007 +0100
@@ -55,6 +55,8 @@
         self.form_trigger_label = _("Do it.") # label for the trigger button
         self.page = Page(request, pagename)
         self.error = ''
+        self.method = 'GET'
+        self.enctype = 'multipart/form-data'
 
     # CHECKS -----------------------------------------------------------------
     def is_excluded(self):
@@ -126,17 +128,9 @@
         else:
             ticket_html = ''
 
-        method = 'GET'
-        if self.method:
-            method = self.method
-
-        enctype = 'multipart/form-data'
-        if self.enctype:
-            enctype = self.enctype
-
         d = {
-            'method': method,
-            'enctype': enctype,
+            'method': self.method,
+            'enctype': self.enctype,
             'error_html': error_html,
             'actionname': self.actionname,
             'pagename': self.pagename,