Fix inconsistent capitalisation and punctuation in attribute docstrings
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Dag Odenhall · committed by Armin Ronacher · parent e3de5e6 · Browse files · 1 file·+21 added−21 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+21 added−21 removed
- other:+21 added−21 removed
Provenance
- Commit
51a5add- Tree
02627c5- Author
Dag Odenhall <dag.odenhall@gmail.com>- Committer
Armin Ronacher <armin.ronacher@active-4.com>- Parent
e3de5e6
1 file changed+21 added−21 removed
modified:flask.py+21 added-21 removed
446 unmodified lines447 448 class _PackageBoundObject(object):449 450 def __init__(self, import_name):451- #: the name of the package or module. Do not change this once451+ #: The name of the package or module. Do not change this once452 #: it was set by the constructor.453 self.import_name = import_name454 455- #: where is the app root located?455+ #: Where is the app root located?456 self.root_path = _get_package_path(self.import_name)457 458 def open_resource(self, resource):459 """Opens a resource from the application's resource folder. To see327 unmodified lines787 from flask import Flask788 app = Flask(__name__)789 """790 791- #: the class that is used for request objects. See :class:`~flask.Request`791+ #: The class that is used for request objects. See :class:`~flask.Request`792 #: for more information.793 request_class = Request794 795- #: the class that is used for response objects. See795+ #: The class that is used for response objects. See796 #: :class:`~flask.Response` for more information.797 response_class = Response798 799- #: path for the static files. If you don't want to use static files799+ #: Path for the static files. If you don't want to use static files800 #: you can set this value to `None` in which case no URL rule is added801 #: and the development server will no longer serve any static files.802 static_path = '/static'803 804- #: the debug flag. Set this to `True` to enable debugging of the804+ #: The debug flag. Set this to `True` to enable debugging of the805 #: application. In debug mode the debugger will kick in when an unhandled806 #: exception ocurrs and the integrated server will automatically reload807 #: the application if changes in the code are detected.808 #:809 #: This attribute can also be configured from the config with the `DEBUG`810 #: configuration key. Defaults to `False`.811 debug = ConfigAttribute('DEBUG')812 813- #: if a secret key is set, cryptographic components can use this to813+ #: If a secret key is set, cryptographic components can use this to814 #: sign cookies and other things. Set this to a complex random value815 #: when you want to use the secure cookie for instance.816 #:817 #: This attribute can also be configured from the config with the818 #: `SECRET_KEY` configuration key. Defaults to `None`.819 secret_key = ConfigAttribute('SECRET_KEY')820 821- #: The secure cookie uses this for the name of the session cookie821+ #: The secure cookie uses this for the name of the session cookie.822 #:823 #: This attribute can also be configured from the config with the824 #: `SESSION_COOKIE_NAME` configuration key. Defaults to ``'session'``825 session_cookie_name = ConfigAttribute('SESSION_COOKIE_NAME')16 unmodified lines842 #: This attribute can also be configured from the config with the843 #: `USE_X_SENDFILE` configuration key. Defaults to `False`.844 use_x_sendfile = ConfigAttribute('USE_X_SENDFILE')845 846- #: the name of the logger to use. By default the logger name is the846+ #: The name of the logger to use. By default the logger name is the847 #: package name passed to the constructor.848 #:849 #: .. versionadded:: 0.4850 logger_name = ConfigAttribute('LOGGER_NAME')851 852- #: the logging format used for the debug logger. This is only used when852+ #: The logging format used for the debug logger. This is only used when853 #: the application is in debug mode, otherwise the attached logging854 #: handler does the formatting.855 #:856 #: .. versionadded:: 0.33 unmodified lines860 '%(message)s\n' +861 '-' * 80862 )863 864- #: options that are passed directly to the Jinja2 environment864+ #: Options that are passed directly to the Jinja2 environment.865 jinja_options = ImmutableDict(866 autoescape=True,867 extensions=['jinja2.ext.autoescape', 'jinja2.ext.with_']868 )869 870- #: default configuration parameters870+ #: Default configuration parameters.871 default_config = ImmutableDict({872 'DEBUG': False,873 'SECRET_KEY': None,874 'SESSION_COOKIE_NAME': 'session',4 unmodified lines879 880 def __init__(self, import_name):881 _PackageBoundObject.__init__(self, import_name)882 883- #: the configuration dictionary as :class:`Config`. This behaves883+ #: The configuration dictionary as :class:`Config`. This behaves884 #: exactly like a regular dictionary but supports additional methods885 #: to load a config from files.886 self.config = Config(self.root_path, self.default_config)887 888- #: prepare the deferred setup of the logger888+ #: Prepare the deferred setup of the logger.889 self._logger = None890 self.logger_name = self.import_name891 892- #: a dictionary of all view functions registered. The keys will892+ #: A dictionary of all view functions registered. The keys will893 #: be function names which are also used to generate URLs and894 #: the values are the function objects themselves.895 #: to register a view function, use the :meth:`route` decorator.896 self.view_functions = {}897 898- #: a dictionary of all registered error handlers. The key is898+ #: A dictionary of all registered error handlers. The key is899 #: be the error code as integer, the value the function that900 #: should handle that error.901 #: To register a error handler, use the :meth:`errorhandler`902 #: decorator.903 self.error_handlers = {}904 905- #: a dictionary with lists of functions that should be called at the905+ #: A dictionary with lists of functions that should be called at the906 #: beginning of the request. The key of the dictionary is the name of907 #: the module this function is active for, `None` for all requests.908 #: This can for example be used to open database connections or909 #: getting hold of the currently logged in user. To register a910 #: function here, use the :meth:`before_request` decorator.911 self.before_request_funcs = {}912 913- #: a dictionary with lists of functions that should be called after913+ #: A dictionary with lists of functions that should be called after914 #: each request. The key of the dictionary is the name of the module915 #: this function is active for, `None` for all requests. This can for916 #: example be used to open database connections or getting hold of the917 #: currently logged in user. To register a function here, use the918 #: :meth:`before_request` decorator.919 self.after_request_funcs = {}920 921- #: a dictionary with list of functions that are called without argument921+ #: A dictionary with list of functions that are called without argument922 #: to populate the template context. They key of the dictionary is the923 #: name of the module this function is active for, `None` for all924 #: requests. Each returns a dictionary that the template context is925 #: updated with. To register a function here, use the1 unmodified line927 self.template_context_processors = {928 None: [_default_template_ctx_processor]929 }930 931- #: the :class:`~werkzeug.routing.Map` for this instance. You can use931+ #: The :class:`~werkzeug.routing.Map` for this instance. You can use932 #: this to change the routing converters after the class was created933 #: but before any routes are connected. Example::934 #:935 #: from werkzeug import BaseConverter19 unmodified lines955 self.wsgi_app = SharedDataMiddleware(self.wsgi_app, {956 self.static_path: target957 })958 959- #: the Jinja2 environment. It is created from the959+ #: The Jinja2 environment. It is created from the960 #: :attr:`jinja_options` and the loader that is returned961 #: by the :meth:`create_jinja_loader` function.962 self.jinja_env = Environment(loader=self.create_jinja_loader(),963 **self.jinja_options)537 unmodified lines