GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( cc823b...3d112a )
by PyJobs
9s
created

pyjobsweb.config.make_app()   A

Complexity

Conditions 1

Size

Total Lines 23

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 23
rs 9.0856
cc 1
1
# -*- coding: utf-8 -*-
2
"""WSGI middleware initialization for the pyjobsweb application."""
3
from pyjobsweb.config.app_cfg import base_config
4
from pyjobsweb.config.environment import load_environment
5
6
__all__ = ['make_app']
7
8
# Use base_config to setup the necessary PasteDeploy application factory.
9
# make_base_app will wrap the TG2 app with all the middleware it needs.
10
make_base_app = base_config.setup_tg_wsgi_app(load_environment)
11
12
13
def make_app(global_conf, full_stack=True, **app_conf):
14
    """
15
    Set pyjobsweb up with the settings found in the PasteDeploy configuration
16
    file used.
17
18
    :param global_conf: The global settings for pyjobsweb (those
19
        defined under the ``[DEFAULT]`` section).
20
    :type global_conf: dict
21
    :param full_stack: Should the whole TG2 stack be set up?
22
    :type full_stack: str or bool
23
    :return: The pyjobsweb application with all the relevant middleware
24
        loaded.
25
26
    This is the PasteDeploy factory for the pyjobsweb application.
27
28
    ``app_conf`` contains all the application-specific settings (those defined
29
    under ``[app:main]``.
30
    """
31
    app = make_base_app(global_conf, full_stack=True, **app_conf)
32
33
    # Wrap your base TurboGears 2 application with custom middleware here
34
35
    return app
36