This file is indexed.

/usr/share/paster_templates/paste_deploy/+package+/wsgiapp.py_tmpl is in python-pastedeploy-tpl 1.5.2-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
from paste.deploy.config import ConfigMiddleware

import sampleapp


def make_app(
    global_conf,
    # Optional and required configuration parameters
    # can go here, or just **kw; greeting is required:
    greeting,
    **kw):
    # This is a WSGI application:
    app = sampleapp.application
    # Here we merge all the keys into one configuration
    # dictionary; you don't have to do this, but this
    # can be convenient later to add ad hoc configuration:
    conf = global_conf.copy()
    conf.update(kw)
    conf['greeting'] = greeting
    # ConfigMiddleware means that paste.deploy.CONFIG will,
    # during this request (threadsafe) represent the
    # configuration dictionary we set up:
    app = ConfigMiddleware(app, conf)
    return app