Skip to content

Commit

Permalink
global: order argument addition
Browse files Browse the repository at this point in the history
* Allows usage of ordered breadcrumbs as menu. (PR #15)

Reviewed-by: Jiri Kuncar <jiri.kuncar@cern.ch>
  • Loading branch information
Pierre Lucas authored and jirikuncar committed Nov 10, 2014
1 parent c957a98 commit c33d85e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ Contact us at `info@invenio-software.org <mailto:info@invenio-software.org>`_
* Krzysztof Lis <krzysztof.lis@cern.ch>
* Jiri Kuncar <jiri.kuncar@cern.ch>
* Tibor Simko <tibor.simko@cern.ch>
* Pierre Lucas <pierre.lucas@altie.fr>
4 changes: 2 additions & 2 deletions flask_breadcrumbs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def get_path(app):
'.' + app.name if isinstance(app, Blueprint) else '')))


def register_breadcrumb(app, path, text,
def register_breadcrumb(app, path, text, order=0,
endpoint_arguments_constructor=None,
dynamic_list_constructor=None):
"""Decorate endpoints that should be displayed as a breadcrumb.
Expand Down Expand Up @@ -144,7 +144,7 @@ def _evaluate_path():

# Get standard menu decorator
menu_decorator = register_menu(
app, func_path, text, 0,
app, func_path, text, order,
endpoint_arguments_constructor=endpoint_arguments_constructor,
dynamic_list_constructor=dynamic_list_constructor)

Expand Down

0 comments on commit c33d85e

Please sign in to comment.