View

class pyramid_views.views.base.View(**kwargs)

Intentionally simple parent class for all views. Only implements dispatch-by-method and simple sanity checking.

@type request: pyramid.request.Request @type args: list @type kwargs: dict

get(self, request, *args, **kwargs)
post(self, request, *args, **kwargs)
put(self, request, *args, **kwargs)
delete(self, request, *args, **kwargs)
classmethod as_view(**initkwargs)

Main entry point for a request-response process.

dispatch(request, *args, **kwargs)
http_method_not_allowed(request, *args, **kwargs)
options(request, *args, **kwargs)

Handles responding to requests for the OPTIONS HTTP verb.

args = None
http_method_names = ['get', 'post', 'put', 'patch', 'delete', 'head', 'options', 'trace']
kwargs = None
request = None