The WSGIApp class

class ferenda.WSGIApp(repos, inifile=None, **kwargs)[source]

Implements a WSGI app.

search(environ, start_response)[source]

WSGI method, called by the wsgi app for requests that matches searchendpoint.

api(environ, start_response)[source]

WSGI method, called by the wsgi app for requests that matches apiendpoint.

static(environ, start_response)[source]

WSGI method, called by the wsgi app for all other requests not handled by search() or api()

stream(environ, start_response)[source]

WSGI method, called by the wsgi app for requests that indicate the need for a streaming response.

exception_heading = 'Something is broken'
exception_description = 'Something went wrong when showing the page. Below is some troubleshooting information intended for the webmaster.'
exception(environ, start_response)[source]
stats(resultset=())[source]
stats_slice(data, facet, resource_graph)[source]
query(environ)[source]
mangle_results(res, ac_query)[source]
mangle_result(hit, ac_query=False)[source]
parse_parameters(querystring, idx)[source]