changeset 4136:9ed19741aee3

Removed failure code (will be handled by a exception-handling middleware)
author Florian Krupicka <florian.krupicka@googlemail.com>
date Wed, 28 May 2008 18:42:52 +0200
parents 0fd8fd9979f8
children ac94a866f715
files MoinMoin/request/__init__.py
diffstat 1 files changed, 0 insertions(+), 18 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/request/__init__.py	Wed May 28 18:34:35 2008 +0200
+++ b/MoinMoin/request/__init__.py	Wed May 28 18:42:52 2008 +0200
@@ -126,7 +126,6 @@
         # Decode values collected by sub classes
         self.path_info = self.decodePagename(self.path_info)
 
-        self.failed = 0
         self._available_actions = None
         self._known_actions = None
 
@@ -1378,23 +1377,6 @@
         # save a traceback with the header for duplicate bug reporting
         self.user_headers.append((header, ''.join(traceback.format_stack()[:-1])))
 
-    def fail(self, err):
-        """ Fail when we can't continue
-
-        Send 500 status code with the error name. Reference:
-        http://www.w3.org/Protocols/rfc2616/rfc2616-sec6.html#sec6.1.1
-
-        Log the error, then let failure module handle it.
-
-        @param err: Exception instance or subclass.
-        """
-        self.failed = 1 # save state for self.run()
-        # we should not generate the headers two times
-        if not self.sent_headers:
-            self.emit_http_headers(['Status: 500 MoinMoin Internal Error'])
-        from MoinMoin import failure
-        failure.handle(self, err)
-
     def make_unique_id(self, base, namespace=None):
         """
         Generates a unique ID using a given base name. Appends a running count to the base.