This file is indexed.

/usr/lib/python2.7/dist-packages/test_files/sample_controllers/controllers/hello.py is in python-pylons 1.0.1-3.

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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import logging

from pylons import request, response, session, tmpl_context as c, url
from pylons.controllers import WSGIController
from pylons.controllers.util import abort, redirect
from pylons.templating import render_mako
from webob import Response
from webob.exc import HTTPNotFound

log = logging.getLogger(__name__)

class HelloController(WSGIController):
    def __init__(self):
        self._pylons_log_debug = True

    def index(self):
        return 'Hello World'
    
    def oops(self):
        raise Exception('oops')
    
    def abort(self):
        abort(404)
    
    def intro_template(self):
        return render_mako('/hello.html')
    
    def time_template(self):
        return render_mako('/time.html', cache_key='fred', cache_expire=20)


def special_controller(environ, start_response):
    return HTTPNotFound()

def empty_wsgi(environ, start_response):
    return

def a_view(request):
    return Response('A View')