Back to index

moin  1.9.0~rc2
Public Member Functions | Public Attributes
MoinMoin.wsgiapp.Application Class Reference

List of all members.

Public Member Functions

def __init__
def __call__

Public Attributes

 Request

Detailed Description

Definition at line 238 of file wsgiapp.py.


Constructor & Destructor Documentation

def MoinMoin.wsgiapp.Application.__init__ (   self,
  app_config = None 
)

Definition at line 239 of file wsgiapp.py.

00239 
00240     def __init__(self, app_config=None):
00241 
00242         class AppRequest(Request):
00243             given_config = app_config
00244 
00245         self.Request = AppRequest


Member Function Documentation

def MoinMoin.wsgiapp.Application.__call__ (   self,
  environ,
  start_response 
)

Definition at line 246 of file wsgiapp.py.

00246 
00247     def __call__(self, environ, start_response):
00248         try:
00249             request = None
00250             request = self.Request(environ)
00251             context = init(request)
00252             response = run(context)
00253             context.clock.stop('total')
00254         except HTTPException, e:
00255             response = e
00256         except error.ConfigurationError, e:
00257             # this is stuff the user should see on the web interface:
00258             response = fatal_response(e)
00259         except Exception, e:
00260             # we avoid raising more exceptions here to preserve the original exception
00261             url_info = request and ' [%s]' % request.url or ''
00262             # have exceptions logged within the moin logging framework:
00263             logging.exception("An exception has occurred%s." % url_info)
00264             # re-raise exception, so e.g. the debugger middleware gets it
00265             raise
00266 
00267         return response(environ, start_response)
00268 
#XXX: default application using the default config from disk

Here is the call graph for this function:


Member Data Documentation

Definition at line 244 of file wsgiapp.py.


The documentation for this class was generated from the following file: