/usr/lib/python3/dist-packages/pyramid/tests/pkgs/restbugapp/views.py is in python3-pyramid 1.6+dfsg-1.1.
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 | from pyramid.response import Response
class BaseRESTView(object):
def __init__(self, context, request):
self.context = context
self.request = request
class PetRESTView(BaseRESTView):
""" REST Controller to control action of an avatar """
def __init__(self, context, request):
super(PetRESTView, self).__init__(context, request)
def GET(self):
return Response('gotten')
|