adhocracy_core.rest.batchview module¶
POST batch requests processing.
-
class
BatchItemResponse(code: int, title: str, body: dict={})[source]¶ Bases:
objectWrap the response to a nested request in a batch request.
Attributes:
Code: the status code (int) Title: the status title (str) Body: the response body as a JSOn object (dict) Initialize self.
-
class
BatchView(context: <InterfaceClass adhocracy_core.resources.root.IRootPool>, request: <InterfaceClass pyramid.interfaces.IRequest>)[source]¶ Bases:
objectProcess batch requests.
-
options() → dict[source]¶ Return options for batch view.
This currently only exist in order to satisfy the preflight request, which browsers do in CORS situations before doing the actual POST.
-