/usr/lib/python2.7/dist-packages/test_files/sample_controllers/controllers/goodbye.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 | 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 webob import Response
from webob.exc import HTTPNotFound
log = logging.getLogger(__name__)
class Smithy(WSGIController):
def __init__(self):
self._pylons_log_debug = True
def index(self):
return 'Hello World'
__controller__ = 'Smithy'
|