Issue #56, Remove child_views, child_urls, children_path_regex, children_view_regex link support

This commit is contained in:
Roberto Rosario
2014-10-28 17:41:10 -04:00
parent b8fe08f831
commit 3909d60e9a
26 changed files with 27 additions and 86 deletions

View File

@@ -26,21 +26,13 @@ def register_links(src, links, menu_name=None, position=None):
object_navigation[menu_name][src]['links'].extend(links)
def register_top_menu(name, link, children_views=None,
children_path_regex=None, children_view_regex=None,
position=None):
def register_top_menu(name, link, position=None):
"""
Register a new menu entry for the main menu displayed at the top
of the page
"""
entry = {'link': link, 'name': name}
if children_views:
entry['children_views'] = children_views
if children_path_regex:
entry['children_path_regex'] = children_path_regex
if children_view_regex:
entry['children_view_regex'] = children_view_regex
if position is not None:
entry['position'] = position
top_menu_entries.insert(position, entry)