def foo(context, request): greeting = request.POST["greeting"] return Response("{} world!".format(greeting))
def special(context, request): return Response("Hello world!")
def second_view(context, request): return Response(u'second')
def box_download(self): request = self.request content_type, stream = self.client.download_file(request.params['id']) block_size = 4096 app_iter = iter(lambda: stream.read(block_size), '') return Response(app_iter=app_iter, content_type=content_type)
def foo(context, request): called.append(True) return Response(u"")
def first_view(context, request): return Response(u'first')
def foo(context, request): slot = request.kotti_slot return Response(u"I'm in slot {0}.".format(slot))
def foo(context, request): bar = request.POST['bar'] return Response(u"{0} world!".format(bar))
def my_viewlet(request): assert hasattr(request, 'registry') assert hasattr(request, 'context') assert hasattr(request, 'user') return Response(u"Hello world!")
def foo(context, request): greeting = request.POST['greeting'] return Response(u"{0} world!".format(greeting))
def logout(context, request): headers = forget(request) data = {'status': True} return Response(json=data, status=200, headerlist=headers)