forked from orbit-oss/flask
simplified as_view documentation
in the process, rewrapped lines to 78 chars (the file's current maximum)
This commit is contained in:
parent
76c1a1f722
commit
2792dcf23e
1 changed files with 4 additions and 4 deletions
|
|
@ -70,10 +70,10 @@ class View(object):
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def as_view(cls, name, *class_args, **class_kwargs):
|
def as_view(cls, name, *class_args, **class_kwargs):
|
||||||
"""Converts the class into an actual view function that can be
|
"""Converts the class into an actual view function that can be used
|
||||||
used with the routing system. What it does internally is generating
|
with the routing system. Internally this generates a function on the
|
||||||
a function on the fly that will instantiate the :class:`View`
|
fly which will instantiate the :class:`View` on each request and call
|
||||||
on each request and call the :meth:`dispatch_request` method on it.
|
the :meth:`dispatch_request` method on it.
|
||||||
|
|
||||||
The arguments passed to :meth:`as_view` are forwarded to the
|
The arguments passed to :meth:`as_view` are forwarded to the
|
||||||
constructor of the class.
|
constructor of the class.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue