buildapi.config package

Submodules

buildapi.config.environment module

Pylons environment configuration

buildapi.config.environment.load_environment(global_conf, app_conf)[source]

Configure the Pylons environment via the pylons.config object

buildapi.config.environment.setup_engine(engine)[source]

buildapi.config.middleware module

Pylons middleware initialization

class buildapi.config.middleware.ControlHeadersMiddleware(app, config)[source]

Bases: object

buildapi.config.middleware.make_app(global_conf, full_stack=True, static_files=True, **app_conf)[source]

Create a Pylons WSGI application and return it

global_conf
The inherited configuration for this application. Normally from the [DEFAULT] section of the Paste ini file.
full_stack
Whether this application provides a full WSGI stack (by default, meaning it handles its own exceptions and errors). Disable full_stack when this application is “managed” by another WSGI middleware.
static_files
Whether this application serves its own static files; disable when another web server is responsible for serving them.
app_conf
The application’s local configuration. Normally specified in the [app:<name>] section of the Paste ini file (where <name> defaults to main).

buildapi.config.routing module

Routes configuration

The more specific and detailed routes should be defined first so they may take precedent over the more generic routes. For more information refer to the routes manual at http://routes.groovie.org/contents.html

buildapi.config.routing.make_map(config)[source]

Create, configure and return the routes Mapper

Module contents