From f1cde5bbfcb7f0466ad35511ffe2e31ea57756d6 Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Sun, 4 Jul 2010 20:11:54 +0200 Subject: [PATCH] Added more versionadded directives --- flask/app.py | 9 +++++++++ flask/module.py | 15 +++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/flask/app.py b/flask/app.py index 87f3e9d3..9cdf9274 100644 --- a/flask/app.py +++ b/flask/app.py @@ -83,6 +83,15 @@ class Flask(_PackageBoundObject): up, that debugging information is lost. (For example it would only pick up SQL queries in `yourapplicaiton.app` and not `yourapplication.views.frontend`) + + .. versionadded:: 0.5 + The `static_path` parameter was added. + + :param import_name: the name of the application package + :param static_path: can be used to specify a different path for the + static files on the web. Defaults to ``/static``. + This does not affect the folder the files are served + *from*. """ #: The class that is used for request objects. See :class:`~flask.Request` diff --git a/flask/module.py b/flask/module.py index dfd30675..6a4f0fb3 100644 --- a/flask/module.py +++ b/flask/module.py @@ -88,6 +88,21 @@ class Module(_PackageBoundObject): For a gentle introduction into modules, checkout the :ref:`working-with-modules` section. + + .. versionadded:: 0.5 + The `static_path` parameter was added. + + :param import_name: the name of the Python package or module + implementing this :class:`Module`. + :param name: the internal short name for the module. Unless specified + the rightmost part of the import name + :param url_prefix: an optional string that is used to prefix all the + URL rules of this module. This can also be specified + when registering the module with the application. + :param static_path: can be used to specify a different path for the + static files on the web. Defaults to ``/static``. + This does not affect the folder the files are served + *from*. """ def __init__(self, import_name, name=None, url_prefix=None,