Let's see whether you can answer the following questions correctly:
- In Pyramid, view callables are which of the following?
- Python objects such as functions, classes, or instances that implement a
__call__
method - Classes that inherit from the
pyramid.views.Callable
superclass - Instances of the
pyramid.views.Callable
class
- Python objects such as functions, classes, or instances that implement a
- The
request
argument that any view callable receives represents an HTTP request, and is an instance of which of the following classes?pyramid.web.Request
pyramid.request.Request
pyramid.callable.Request
- Which of the following attributes allows us to specify the status code for the response in a
pyramid.response.Response
instance?status
http_status_code
status_code
- Which of the following classes, declared in the
pyramid.httpexceptions
module, represent an HTTP201 Created
status code for a response?HTTP_201_Created
HTTP_Created
HTTPCreated
- Which of the following attributes allows us to specify the response body for a JSON response in a
pyramid.response.Response
...