/usr/lib/python2.7/dist-packages/test_files/event_file.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 | from pylons.events import NewRequest, NewResponse, subscriber
@subscriber(NewRequest)
def add_reggy(event):
event.request.reg = True
@subscriber(NewResponse)
def add_respy(event):
event.response.reg = True
|