This file is indexed.

/usr/lib/python2.7/dist-packages/cherrypy/filters/basefilter.py is in python-cherrypy 2.3.0-5.

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
"""Base class for CherryPy filters."""

class BaseFilter(object):
    """
    Base class for filters. Derive new filter classes from this, then
    override some of the methods to add some side-effects.
    """
    
    def on_start_resource(self):
        """Called before any request processing has been done"""
        pass
    
    def before_request_body(self):
        """Called after the request header has been read/parsed"""
        pass
    
    def before_main(self):
        """ Called after the request body has been read/parsed"""
        pass
    
    def before_finalize(self):
        """Called before final output processing"""
        pass
    
    def before_error_response(self):
        """Called before _cp_on_error and/or finalizing output"""
        pass
    
    def after_error_response(self):
        """Called after _cp_on_error and finalize"""
        pass
    
    def on_end_resource(self):
        """Called after finalizing the output (status, header, and body)"""
        pass
    
    def on_end_request(self):
        """Called when the server closes the request."""
        pass