Description

1.7 fails with a traceback currently on an unknown action.

add a ?action=error to a 1.7 test wiki

--> -->

AttributeError

'Request' object has no attribute 'request'

If you want to report a bug, please save this page and attach it to your bug report.

traceback.html

Details

MoinMoin Version

1.7 dev

OS and Version

Python Version

Server Setup

Server Details

Language you are using the wiki in (set in the browser/UserPreferences)

Workaround

Discussion

The following patch should fix the issue.

--- moin-1.7.orig/MoinMoin/request/__init__.py  2008-02-27 18:54:05.000000000 +0200
+++ moin-1.7/MoinMoin/request/__init__.py       2008-02-28 18:51:44.000000000 +0200
@@ -1252,7 +1252,7 @@
                         msg += " " + _("Login and try again.")

                 if msg:
-                    self.request.theme.add_msg(msg, "error")
+                    self.theme.add_msg(msg, "error")
                     self.page.send_page()
                 # Try action
                 else:
@@ -1264,7 +1264,7 @@
                         if not self.user.valid:
                             # Suggest non valid user to login
                             msg += " " + _("Login and try again.")
-                        self.request.theme.add_msg(msg, "error")
+                        self.theme.add_msg(msg, "error")
                         self.page.send_page()
                     else:
                         handler(self.page.page_name, self)

Plan


CategoryMoinMoinBugFixed

MoinMoin: MoinMoinBugs/1.7devTracebackOnUnknownAction (last edited 2008-02-29 14:38:58 by FedericoLorenzi)