Conditions | 1 |
Total Lines | 23 |
Lines | 0 |
Ratio | 0 % |
1 | # -*- coding: utf-8 -*- |
||
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 |