changeset 909:3680f8b5066f

show is default action
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Fri, 07 Jul 2006 22:26:06 +0200
parents 75df9c6c20bc
children 1730c8e75ade
files MoinMoin/request/__init__.py
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/request/__init__.py	Fri Jul 07 22:11:16 2006 +0200
+++ b/MoinMoin/request/__init__.py	Fri Jul 07 22:26:06 2006 +0200
@@ -1038,7 +1038,7 @@
         try:
             self.initTheme()
 
-            action_name = self.form.get('action', [None])[0]
+            action_name = self.form.get('action', ['show'])[0]
 
             # The last component in path_info is the page name, if any
             path = self.getPathinfo()
@@ -1059,7 +1059,7 @@
                 page.send_page(self, msg=msg)
 
             # 2. Or jump to page where user left off
-            elif not pagename and not action_name and self.user.remember_last_visit:
+            elif not pagename and self.user.remember_last_visit:
                 pagetrail = self.user.getTrail()
                 if pagetrail:
                     # Redirect to last page visited
@@ -1076,8 +1076,6 @@
 
             # 3. Or handle action
             else:
-                if action_name is None:
-                    action_name = 'show'
                 if not pagename and self.query_string:
                     pagename = self.getPageNameFromQueryString()
                 # pagename could be empty after normalization e.g. '///' -> ''