Skip to content
Myr

Fix some typos in the docstrings

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

authored by jgraeme · committed by Armin Ronacher · parent ff2786d · Browse files · 4 files+8 added−8 removed
This commit

State

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

Diff stats

4 files+8 added−8 removed

  • other:+8 added−8 removed

4 files+8 added−8 removed

modified:flask/app.py+2 added-2 removed
213 unmodified lines
214215 #: A dictionary of all view functions registered. The keys will216 #: be function names which are also used to generate URLs and217 #: the values are the function objects themselves.218 #: to register a view function, use the :meth:`route` decorator.218 #: To register a view function, use the :meth:`route` decorator.219 self.view_functions = {}220221 #: A dictionary of all registered error handlers. The key is222 #: be the error code as integer, the value the function that
18 unmodified lines
241 #: :meth:`before_request` decorator.242 self.after_request_funcs = {}243244 #: A dictionary with list of functions that are called without argument245 #: to populate the template context. They key of the dictionary is the245 #: to populate the template context. The key of the dictionary is the246 #: name of the module this function is active for, `None` for all247 #: requests. Each returns a dictionary that the template context is248 #: updated with. To register a function here, use the249 #: :meth:`context_processor` decorator.
646 unmodified lines
modified:flask/helpers.py+1 added-1 removed
144 unmodified lines
145def url_for(endpoint, **values):146 """Generates a URL to the given endpoint with the method provided.147 The endpoint is relative to the active module if modules are in use.148149 Here some examples:149 Here are some examples:150151 ==================== ======================= =============================152 Active Module Target Endpoint Target Function153 ==================== ======================= =============================
310 unmodified lines
modified:flask/module.py+2 added-2 removed
52 unmodified lines
53 modules can share the same import names, but in that case a `name` has54 to be provided to keep them apart. If different import names are used,55 the rightmost part of the import name is used as name.5657 Here an example structure for a larger appliation::57 Here's an example structure for a larger application::5859 /myapplication60 /__init__.py61 /views
10 unmodified lines
72 app = Flask(__name__)73 app.register_module(admin, url_prefix='/admin')74 app.register_module(frontend)7576 And here an example view module (`myapplication/views/admin.py`)::76 And here's an example view module (`myapplication/views/admin.py`)::7778 from flask import Module7980 admin = Module(__name__)
141 unmodified lines
modified:flask/wrappers.py+3 added-3 removed
15 unmodified lines
16from .globals import _request_ctx_stack171819class Request(RequestBase):20 """The request object used by default in flask. Remembers the20 """The request object used by default in Flask. Remembers the21 matched endpoint and view arguments.2223 It is what ends up as :class:`~flask.request`. If you want to replace24 the request object used you can subclass this and set
51 unmodified lines
76 return json.loads(self.data)777879class Response(ResponseBase):80 """The response object that is used by default in flask. Works like the81 response object from Werkzeug but is set to have a HTML mimetype by80 """The response object that is used by default in Flask. Works like the81 response object from Werkzeug but is set to have an HTML mimetype by82 default. Quite often you don't have to create this object yourself because83 :meth:`~flask.Flask.make_response` will take care of that for you.8485 If you want to replace the response object used you can subclass this and
3 unmodified lines