Module Expr Str ImportFrom alias ImportFrom alias alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Str TupleLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad kwarg body Expr Str If AttributeLoad NameLoad attr body Assign NameStore BinOpAdd AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr If CompareIn Str NameLoad body Assign NameStore Call NameLoad NameLoad Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad keyword NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr Dict If CompareIs NameLoad NameLoad body Assign NameStore Dict Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If BoolOpAnd AttributeLoad NameLoad attr AttributeLoad NameLoad attr body ImportFrom alias Expr Call NameLoad Call NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad decorator_list Return Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Return Call NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr keyword Str For NameStore AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad kwarg body Expr Str If NameLoad body Assert CompareNotIn Str NameLoad Str Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam defaults body Assign SubscriptStore AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults Call AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr ListLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults Call AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad ListLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults Call AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr ListLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults Call AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad ListLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults Call AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr ListLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults Call AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad ListLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults Call AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr ListLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults Call AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad ListLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults Call Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Return NameLoad decorator_list Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults Call AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr ListLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults Call AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr ListLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults Call AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad ListLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults Call AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad ListLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list Return NameLoad decorator_list decorator_list
N/A N/A 
    flask.blueprints
    ~~~~~~~~~~~~~~~~

    Blueprints are the recommended way to implement larger or more
    pluggable applications in Flask 0.7 and later.

    :copyright: (c) 2011 by Armin Ronacher.
    :license: BSD, see LICENSE for more details.
 functools update_wrapper helpers _PackageBoundObject _endpoint_from_view_func BlueprintSetupState N/A object N/A N/A Temporary holder object for registering a blueprint with the
    application.  An instance of this class is created by the
    :meth:`~flask.Blueprint.make_setup_state` method and later passed
    to all register callback functions.
     __init__ N/A N/A self blueprint app options first_registration N/A N/A N/A N/A self app app N/A N/A self blueprint blueprint N/A N/A self options options N/A N/A self first_registration first_registration N/A subdomain N/A N/A N/A self options get subdomain N/A N/A subdomain None N/A N/A subdomain N/A N/A self blueprint subdomain N/A N/A self subdomain subdomain N/A url_prefix N/A N/A N/A self options get url_prefix N/A N/A url_prefix None N/A N/A url_prefix N/A N/A self blueprint url_prefix N/A N/A self url_prefix url_prefix N/A N/A self url_defaults N/A dict N/A N/A self blueprint url_values_defaults N/A N/A N/A N/A self url_defaults update N/A N/A N/A self options get url_defaults N/A N/A add_url_rule N/A N/A self rule endpoint view_func N/A None None options N/A N/A A helper method to register a rule (and optionally a view function)
        to the application.  The endpoint is automatically prefixed with the
        blueprint's name.
         N/A N/A self url_prefix N/A N/A rule N/A N/A self url_prefix rule N/A N/A N/A options setdefault subdomain N/A self subdomain N/A N/A endpoint None N/A N/A endpoint N/A _endpoint_from_view_func view_func N/A defaults N/A self url_defaults N/A N/A defaults options N/A N/A defaults N/A dict defaults N/A N/A options pop defaults N/A N/A N/A N/A self app add_url_rule rule N/A %s.%s N/A N/A N/A self blueprint name endpoint view_func defaults defaults options N/A N/A Blueprint N/A _PackageBoundObject N/A N/A Represents a blueprint.  A blueprint is an object that records
    functions that will be called with the
    :class:`~flask.blueprint.BlueprintSetupState` later to register functions
    or other things on the main application.  See :ref:`blueprints` for more
    information.

    .. versionadded:: 0.7
     N/A warn_on_modifications False N/A _got_registered_once False __init__ N/A N/A self name import_name static_folder static_url_path template_folder url_prefix subdomain url_defaults N/A None None None None None None N/A N/A N/A N/A _PackageBoundObject __init__ self import_name template_folder N/A N/A self name name N/A N/A self url_prefix url_prefix N/A N/A self subdomain subdomain N/A N/A self static_folder static_folder N/A N/A self static_url_path static_url_path N/A N/A self deferred_functions N/A N/A N/A self view_functions N/A N/A N/A url_defaults None N/A N/A url_defaults N/A N/A N/A self url_values_defaults url_defaults N/A record N/A N/A self func N/A N/A N/A Registers a function that is called when the blueprint is
        registered on the application.  This function is called with the
        state as argument as returned by the :meth:`make_setup_state`
        method.
         N/A N/A N/A self _got_registered_once N/A self warn_on_modifications N/A warnings warn N/A N/A warn N/A Warning The blueprint was already registered once but is getting modified now.  These changes will not show up. N/A N/A N/A N/A self deferred_functions append func N/A record_once N/A N/A self func N/A N/A N/A Works like :meth:`record` but wraps the function in another
        function that will ensure the function is only called once.  If the
        blueprint is registered a second time on the application, the
        function passed is not called.
         wrapper N/A N/A state N/A N/A N/A N/A state first_registration N/A N/A N/A func state N/A N/A N/A N/A self record N/A update_wrapper wrapper func N/A make_setup_state N/A N/A self app options first_registration N/A False N/A N/A Creates an instance of :meth:`~flask.blueprints.BlueprintSetupState`
        object that is later passed to the register callback functions.
        Subclasses can override this to return a subclass of the setup state.
         N/A N/A BlueprintSetupState self app options first_registration N/A register N/A N/A self app options first_registration N/A False N/A N/A Called by :meth:`Flask.register_blueprint` to register a blueprint
        on the application.  This can be overridden to customize the register
        behavior.  Keyword arguments from
        :func:`~flask.Flask.register_blueprint` are directly forwarded to this
        method in the `options` dictionary.
         N/A N/A self _got_registered_once True N/A state N/A N/A self make_setup_state app options first_registration N/A N/A self has_static_folder N/A N/A N/A N/A state add_url_rule N/A N/A self static_url_path /<path:filename> view_func N/A self send_static_file endpoint static N/A deferred N/A self deferred_functions N/A N/A N/A deferred state N/A route N/A N/A self rule N/A options N/A N/A Like :meth:`Flask.route` but for a blueprint.  The endpoint for the
        :func:`url_for` function is prefixed with the name of the blueprint.
         decorator N/A N/A f N/A N/A N/A endpoint N/A N/A options pop endpoint N/A f __name__ N/A N/A N/A self add_url_rule rule endpoint f options N/A f N/A N/A decorator N/A add_url_rule N/A N/A self rule endpoint view_func N/A None None options N/A N/A Like :meth:`Flask.add_url_rule` but for a blueprint.  The endpoint for
        the :func:`url_for` function is prefixed with the name of the blueprint.
         N/A endpoint N/A N/A N/A . endpoint Blueprint endpoint's should not contain dot's N/A N/A N/A self record N/A N/A N/A s N/A N/A N/A s add_url_rule rule endpoint view_func options N/A endpoint N/A N/A self endpoint N/A N/A N/A Like :meth:`Flask.endpoint` but for a blueprint.  This does not
        prefix the endpoint with the blueprint name, this has to be done
        explicitly by the user of this method.  If the endpoint is prefixed
        with a `.` it will be registered to the current blueprint, otherwise
        it's an application independent endpoint.
         decorator N/A N/A f N/A N/A register_endpoint N/A N/A state N/A N/A N/A N/A N/A N/A state app view_functions N/A endpoint f N/A N/A N/A N/A self record_once register_endpoint N/A f N/A N/A decorator N/A before_request N/A N/A self f N/A N/A N/A Like :meth:`Flask.before_request` but for a blueprint.  This function
        is only executed before each request that is handled by a function of
        that blueprint.
         N/A N/A N/A self record_once N/A N/A N/A s N/A N/A N/A N/A N/A N/A N/A s app before_request_funcs setdefault N/A self name N/A append f N/A f N/A before_app_request N/A N/A self f N/A N/A N/A Like :meth:`Flask.before_request`.  Such a function is executed
        before each request, even if outside of a blueprint.
         N/A N/A N/A self record_once N/A N/A N/A s N/A N/A N/A N/A N/A N/A N/A s app before_request_funcs setdefault None N/A append f N/A f N/A before_app_first_request N/A N/A self f N/A N/A N/A Like :meth:`Flask.before_first_request`.  Such a function is
        executed before the first request to the application.
         N/A N/A N/A self record_once N/A N/A N/A s N/A N/A N/A N/A N/A s app before_first_request_funcs append f N/A f N/A after_request N/A N/A self f N/A N/A N/A Like :meth:`Flask.after_request` but for a blueprint.  This function
        is only executed after each request that is handled by a function of
        that blueprint.
         N/A N/A N/A self record_once N/A N/A N/A s N/A N/A N/A N/A N/A N/A N/A s app after_request_funcs setdefault N/A self name N/A append f N/A f N/A after_app_request N/A N/A self f N/A N/A N/A Like :meth:`Flask.after_request` but for a blueprint.  Such a function
        is executed after each request, even if outside of the blueprint.
         N/A N/A N/A self record_once N/A N/A N/A s N/A N/A N/A N/A N/A N/A N/A s app after_request_funcs setdefault None N/A append f N/A f N/A teardown_request N/A N/A self f N/A N/A N/A Like :meth:`Flask.teardown_request` but for a blueprint.  This
        function is only executed when tearing down requests handled by a
        function of that blueprint.  Teardown request functions are executed
        when the request context is popped, even when no actual request was
        performed.
         N/A N/A N/A self record_once N/A N/A N/A s N/A N/A N/A N/A N/A N/A N/A s app teardown_request_funcs setdefault N/A self name N/A append f N/A f N/A teardown_app_request N/A N/A self f N/A N/A N/A Like :meth:`Flask.teardown_request` but for a blueprint.  Such a
        function is executed when tearing down each request, even if outside of
        the blueprint.
         N/A N/A N/A self record_once N/A N/A N/A s N/A N/A N/A N/A N/A N/A N/A s app teardown_request_funcs setdefault None N/A append f N/A f N/A context_processor N/A N/A self f N/A N/A N/A Like :meth:`Flask.context_processor` but for a blueprint.  This
        function is only executed for requests handled by a blueprint.
         N/A N/A N/A self record_once N/A N/A N/A s N/A N/A N/A N/A N/A N/A N/A s app template_context_processors setdefault N/A self name N/A append f N/A f N/A app_context_processor N/A N/A self f N/A N/A N/A Like :meth:`Flask.context_processor` but for a blueprint.  Such a
        function is executed each request, even if outside of the blueprint.
         N/A N/A N/A self record_once N/A N/A N/A s N/A N/A N/A N/A N/A N/A N/A s app template_context_processors setdefault None N/A append f N/A f N/A app_errorhandler N/A N/A self code N/A N/A N/A Like :meth:`Flask.errorhandler` but for a blueprint.  This
        handler is used for all requests, even if outside of the blueprint.
         decorator N/A N/A f N/A N/A N/A N/A N/A self record_once N/A N/A N/A s N/A N/A N/A N/A N/A s app errorhandler code f N/A f N/A N/A decorator N/A url_value_preprocessor N/A N/A self f N/A N/A N/A Registers a function as URL value preprocessor for this
        blueprint.  It's called before the view functions are called and
        can modify the url values provided.
         N/A N/A N/A self record_once N/A N/A N/A s N/A N/A N/A N/A N/A N/A N/A s app url_value_preprocessors setdefault N/A self name N/A append f N/A f N/A url_defaults N/A N/A self f N/A N/A N/A Callback function for URL defaults for this blueprint.  It's called
        with the endpoint and values and should update the values passed
        in place.
         N/A N/A N/A self record_once N/A N/A N/A s N/A N/A N/A N/A N/A N/A N/A s app url_default_functions setdefault N/A self name N/A append f N/A f N/A app_url_value_preprocessor N/A N/A self f N/A N/A N/A Same as :meth:`url_value_preprocessor` but application wide.
         N/A N/A N/A self record_once N/A N/A N/A s N/A N/A N/A N/A N/A N/A N/A s app url_value_preprocessors setdefault None N/A append f N/A f N/A app_url_defaults N/A N/A self f N/A N/A N/A Same as :meth:`url_defaults` but application wide.
         N/A N/A N/A self record_once N/A N/A N/A s N/A N/A N/A N/A N/A N/A N/A s app url_default_functions setdefault None N/A append f N/A f N/A errorhandler N/A N/A self code_or_exception N/A N/A N/A Registers an error handler that becomes active for this blueprint
        only.  Please be aware that routing does not happen local to a
        blueprint so an error handler for 404 usually is not handled by
        a blueprint unless it is caused inside a view function.  Another
        special case is the 500 internal server error which is always looked
        up from the application.

        Otherwise works as the :meth:`~flask.Flask.errorhandler` decorator
        of the :class:`~flask.Flask` object.
         decorator N/A N/A f N/A N/A N/A N/A N/A self record_once N/A N/A N/A s N/A N/A N/A N/A s app _register_error_handler N/A self name code_or_exception f N/A f N/A N/A decorator N/A N/A