This file is indexed.

/usr/share/pyshared/circuits/web/events.py is in python-circuits 2.1.0-2.

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
40
41
42
43
44
45
46
47
48
# Module:   events
# Date:     3rd February 2009
# Author:   James Mills, prologic at shortcircuit dot net dot au
from circuits.core.events import LiteralEvent

"""Events

This module implements the necessary Events needed.
"""

from circuits import Event


class WebEvent(Event):
    """
    WebEvents have both their ``success`` and ``failure`` attributes set to
    True. So event processing generates the derived events
    ``...Success`` or ``...Failure`` events.
    """
    success = True
    failure = True


class Request(WebEvent):
    """Request(WebEvent) -> Request WebEvent

    args: request, response
    """
    @classmethod
    def create(cls, name, *args, **kwargs):
        """
        All classes derived dynamically from Request are LiteralEvents.
        """
        return LiteralEvent.create(cls, name, *args, **kwargs)


class Response(WebEvent):
    """Response(WebEvent) -> Response WebEvent

    args: request, response
    """


class Stream(WebEvent):
    """Stream(WebEvent) -> Stream WebEvent

    args: request, response
    """