Skip to content

Commit

Permalink
simplified as_view documentation
Browse files Browse the repository at this point in the history
in the process, rewrapped lines to 78 chars (the file's current maximum)
  • Loading branch information
FND committed Jan 23, 2012
1 parent 76c1a1f commit 2792dcf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions flask/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ def dispatch_request(self):

@classmethod
def as_view(cls, name, *class_args, **class_kwargs):
"""Converts the class into an actual view function that can be
used with the routing system. What it does internally is generating
a function on the fly that will instantiate the :class:`View`
on each request and call the :meth:`dispatch_request` method on it.
"""Converts the class into an actual view function that can be used
with the routing system. Internally this generates a function on the
fly which will instantiate the :class:`View` on each request and call
the :meth:`dispatch_request` method on it.
The arguments passed to :meth:`as_view` are forwarded to the
constructor of the class.
Expand Down

0 comments on commit 2792dcf

Please sign in to comment.