Logo Search packages:      
Sourcecode: zine version File versions  Download package

def zine::application::Zine::handle_not_found (   self,
  request,
  exception 
)

Handle a not found exception.  This also dispatches to plugins
that listen for for absolute urls.  See `add_absolute_url` for
details.

Definition at line 1121 of file application.py.

01121                                                   :
        """Handle a not found exception.  This also dispatches to plugins
        that listen for for absolute urls.  See `add_absolute_url` for
        details.
        """
        for handler in self._absolute_url_handlers:
            try:
                rv = handler(request)
                if rv is not None:
                    return rv
            except NotFound:
                # a not found exception has the same effect as returning
                # None.  The next handler is processed.  All other http
                # exceptions are passed trough.
                pass
        response = render_response('404.html')
        response.status_code = 404
        return response

    def handle_server_error(self, request, exc_info=None, suppress_log=False):


Generated by  Doxygen 1.6.0   Back to index