Browse Source

simplified as_view documentation

in the process, rewrapped lines to 78 chars (the file's current maximum)
pull/387/head
FND 13 years ago
parent
commit
2792dcf23e
  1. 8
      flask/views.py

8
flask/views.py

@ -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…
Cancel
Save