Did I find the right examples for you? yes no

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/r/h/Rhetoric-0.1.12/rhetoric/middleware.py   Rhetoric(Download)
from django.http import HttpResponse
from django.middleware.csrf import CsrfViewMiddleware
 
from rhetoric.view import ViewCallback
from rhetoric.request import JsonBodyProperty
        # http://docs.pylonsproject.org/projects/pyramid/en/latest/api/request.html#pyramid.request.Request.response
        setattr(request, 'response', HttpResponse())
        setattr(request, 'json_body', JsonBodyProperty(request))
 
 

src/r/h/Rhetoric-HEAD/rhetoric/middleware.py   Rhetoric(Download)
from django.http import HttpResponse
from django.middleware.csrf import CsrfViewMiddleware
 
from rhetoric.view import ViewCallback
from rhetoric.request import JsonBodyProperty
        # http://docs.pylonsproject.org/projects/pyramid/en/latest/api/request.html#pyramid.request.Request.response
        setattr(request, 'response', HttpResponse())
        setattr(request, 'json_body', JsonBodyProperty(request))