This file is indexed.

/usr/lib/python3/dist-packages/wsmeext/tg15.py is in python3-wsme 0.8.0-2ubuntu2.

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
import cherrypy

from wsmeext.tg1 import wsexpose, wsvalidate
import wsmeext.tg1


__all__ = ['adapt', 'wsexpose', 'wsvalidate']


def scan_api(root=None):
    for baseurl, instance in cherrypy.tree.apps.items():
        path = [token for token in baseurl.split('/') if token]
        for i in wsmeext.tg1._scan_api(instance.root, path):
            yield i


def adapt(wsroot):
    wsroot._scan_api = scan_api
    controller = wsmeext.tg1.Controller(wsroot)
    return controller