Skip to content
Myr

simplified as_view documentation

Before adoption: this commit came in with the history the project adopted, so no landing records it.

in the process, rewrapped lines to 78 chars (the file's current maximum)

authored by FND · committed by FND · parent 76c1a1f · Browse files · 1 file+4 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−4 removed

  • other:+4 added−4 removed

1 file+4 added−4 removed

modified:flask/views.py+4 added-4 removed
68 unmodified lines
69 raise NotImplementedError()7071 @classmethod72 def as_view(cls, name, *class_args, **class_kwargs):73 """Converts the class into an actual view function that can be74 used with the routing system. What it does internally is generating75 a function on the fly that will instantiate the :class:`View`76 on each request and call the :meth:`dispatch_request` method on it.73 """Converts the class into an actual view function that can be used74 with the routing system. Internally this generates a function on the75 fly which will instantiate the :class:`View` on each request and call76 the :meth:`dispatch_request` method on it.7778 The arguments passed to :meth:`as_view` are forwarded to the79 constructor of the class.80 """
70 unmodified lines