Module Import alias ImportFrom alias alias alias ImportFrom alias alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr IfExp CompareIs NameLoad NameLoad Dict NameLoad Assign AttributeStore NameLoad attr Call NameLoad BoolOpOr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str ListLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad If UnaryOpNot SubscriptLoad NameLoad Index Str body Delete SubscriptDel NameLoad Index Str Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call NameLoad NameLoad Return Call AttributeLoad Call NameLoad BinOpMod Str NameLoad attr keyword AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareEq NameLoad Str body Assign NameStore IfExp AttributeLoad NameLoad attr Call NameLoad Str Str Return Call AttributeLoad Call NameLoad Str attr NameLoad Call AttributeLoad NameLoad attr orelse If NameLoad body Raise Call NameLoad Str Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIs AttributeLoad NameLoad attr NameLoad body Return Dict If Call NameLoad AttributeLoad NameLoad attr body Return Call NameLoad Call AttributeLoad NameLoad attr Return Call NameLoad AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Return Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad BoolOpAnd NameLoad AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return CompareIs AttributeLoad NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body Return NameLoad Assign NameStore CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return BoolOpAnd NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr Dict Expr Call AttributeLoad NameLoad attr BoolOpOr NameLoad ListLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If Call NameLoad NameLoad NameLoad body Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad If Call NameLoad NameLoad NameLoad body Assign TupleStore NameStore NameStore NameLoad orelse Assign TupleStore NameStore NameStore TupleLoad NameLoad Dict Assign NameStore Call NameLoad NameLoad NameLoad Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Delete SubscriptDel AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore SubscriptLoad NameLoad Index NameLoad Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad Delete SubscriptDel AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases Call AttributeLoad NameLoad attr Str Str body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults TupleLoad body If Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Return Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list decorator_list
N/A N/A collections flask url_for request Markup utils freeze_dict join_html_attrs Item N/A object N/A N/A The navigation item object.

    :param label: the display label of this navigation item.
    :param endpoint: the unique name of this navigation item.
                     If this item point to a internal url, this parameter
                     should be acceptable for ``url_for`` which will generate
                     the target url.
    :param args: optional. If this parameter be provided, it will be passed to
                 the ``url_for`` with ``endpoint`` together.
                 Maybe this arguments need to be decided in the Flask app
                 context, then this parameter could be a function to delay the
                 execution.
    :param url: optional. If this parameter be provided, the target url of
                this navigation will be it. The ``endpoint`` and ``args`` will
                not been used to generate url.
    :param html_attrs: optional. This :class:`dict` will be used for
                       representing html.

    The ``endpoint`` is the identity name of this navigation item. It will be
    unique in whole application. In mostly situation, it should be a endpoint
    name of a Flask view function.
     __init__ N/A N/A self label endpoint args url html_attrs items N/A None None None None N/A N/A N/A self label label N/A N/A self endpoint endpoint N/A N/A self _args args N/A N/A self _url url N/A N/A self html_attrs N/A N/A html_attrs None N/A html_attrs N/A N/A self items N/A ItemCollection N/A items None N/A __html__ N/A N/A self N/A N/A N/A attrs N/A dict N/A self html_attrs N/A html_class N/A N/A attrs get class N/A N/A N/A self is_active N/A N/A N/A N/A html_class append active N/A N/A attrs N/A class N/A N/A join html_class N/A N/A N/A attrs N/A class N/A N/A N/A attrs N/A class N/A N/A attrs N/A href N/A self url N/A N/A attrs_template attrs_values N/A join_html_attrs attrs N/A N/A N/A N/A Markup N/A <a %s>{label}</a> attrs_template format label N/A self label attrs_values N/A __html_format__ N/A N/A self format_spec N/A N/A N/A N/A format_spec li N/A N/A li_attrs N/A N/A self is_active N/A Markup  class="active" N/A N/A N/A N/A Markup <li{0}>{1}</li> format li_attrs N/A N/A self __html__ N/A N/A format_spec N/A N/A N/A ValueError Invalid format spec N/A N/A N/A self __html__ N/A args N/A N/A self N/A N/A N/A The arguments which will be passed to ``url_for``.

        :type: :class:`dict`
         N/A N/A N/A self _args None N/A N/A N/A N/A N/A callable N/A self _args N/A N/A N/A dict N/A N/A self _args N/A N/A dict N/A self _args N/A property url N/A N/A self N/A N/A N/A The final url of this navigation item.

        By default, the value is generated by the :attr:`self.endpoint` and
        :attr:`self.args`.

        .. note::

           The :attr:`url` property require the app context without a provided
           config value :const:`SERVER_NAME`, because of :func:`flask.url_for`.

        :type: :class:`str`
         N/A N/A self is_internal N/A N/A N/A url_for N/A self endpoint N/A self args N/A N/A self _url N/A property is_active N/A N/A self N/A N/A N/A ``True`` if the item should be presented as active, and ``False``
        always if the request context is not bound.
         N/A N/A bool N/A request N/A self is_current N/A property is_internal N/A N/A self N/A N/A N/A ``True`` if the target url is internal of current app. N/A N/A N/A self _url None N/A property is_current N/A N/A self N/A N/A N/A ``True`` if current request has same endpoint with the item.

        The property should be used in a bound request context, or the
        :class:`RuntimeError` may be raised.
         N/A N/A N/A self is_internal N/A N/A False N/A has_same_endpoint N/A N/A request endpoint N/A self endpoint N/A has_same_args N/A N/A request view_args N/A self args N/A N/A has_same_endpoint has_same_args N/A property ident N/A N/A self N/A N/A N/A The identity of this item.

        :type: :class:`~flask.ext.navigation.Navigation.ItemReference`
         N/A N/A ItemReference N/A self endpoint N/A self args N/A property N/A ItemCollection N/A N/A collections MutableSequence N/A collections Iterable N/A N/A The collection of navigation items.

    This collection is a mutable sequence. All items have order index, and
    could be found by its endpoint name. e.g.::

        c = ItemCollection()
        c.append(Item(endpoint='doge'))

        print(c['doge'])  # output: Item(endpoint='doge')
        print(c[0])       # output: Item(endpoint='doge')
        print(c)          # output: ItemCollection([Item(endpoint='doge')])
        print(len(c))     # output: 1

        c.append(Item(endpoint='lumpy', args={'num': 4}))

        print(c[1])       # output: Item(endpoint='lumpy', args={'num': 4})
        assert c['lumpy', {'num': 4}] is c[1]
     __init__ N/A N/A self iterable N/A None N/A N/A N/A self _items N/A N/A N/A self _items_mapping N/A N/A N/A N/A self extend N/A iterable N/A N/A __repr__ N/A N/A self N/A N/A N/A N/A ItemCollection(%r) N/A self _items N/A __getitem__ N/A N/A self index N/A N/A N/A N/A isinstance index int N/A N/A N/A N/A self _items N/A index N/A N/A isinstance index tuple N/A N/A N/A endpoint args index N/A N/A N/A endpoint args N/A index N/A N/A ident N/A ItemReference endpoint args N/A N/A N/A self _items_mapping N/A ident N/A __setitem__ N/A N/A self index item N/A N/A N/A old_item N/A N/A self _items N/A index N/A N/A N/A self _items_mapping N/A N/A old_item ident N/A N/A N/A self _items N/A index item N/A N/A N/A self _items_mapping N/A N/A item ident item N/A __delitem__ N/A N/A self index N/A N/A N/A item N/A self N/A index N/A N/A N/A self _items N/A index N/A N/A N/A self _items_mapping N/A N/A item ident N/A __len__ N/A N/A self N/A N/A N/A N/A len N/A self _items N/A __iter__ N/A N/A self N/A N/A N/A N/A iter N/A self _items N/A insert N/A N/A self index item N/A N/A N/A N/A N/A N/A self _items insert index item N/A N/A N/A self _items_mapping N/A N/A item ident item N/A N/A ItemReference N/A N/A N/A collections namedtuple ItemReference endpoint args N/A N/A The identity tuple of navigation item.

    :param endpoint: the endpoint of view function.
    :type endpoint: ``str``
    :param args: the arguments of view function.
    :type args: ``dict``
     __new__ N/A N/A cls endpoint args N/A N/A N/A N/A N/A isinstance args dict N/A N/A args N/A freeze_dict args N/A N/A N/A N/A super cls ItemReference __new__ cls endpoint args N/A N/A