Added tag editing view and listing documents with an specific tag

This commit is contained in:
Roberto Rosario
2011-04-28 21:30:37 -04:00
parent 2532a0a2d8
commit 675bdd6112
13 changed files with 271 additions and 137 deletions

View File

@@ -130,6 +130,17 @@ def _get_object_navigation_links(context, menu_name=None, links_dict=object_navi
current_view = resolve_to_name(current_path)
context_links = []
try:
"""
Override the navigation links dictionary with the provided
link list
"""
navigation_object_links = Variable('navigation_object_links').resolve(context)
if navigation_object_links:
return navigation_object_links
except VariableDoesNotExist:
pass
try:
object_name = Variable('navigation_object_name').resolve(context)
except VariableDoesNotExist:
@@ -139,12 +150,6 @@ def _get_object_navigation_links(context, menu_name=None, links_dict=object_navi
obj = Variable(object_name).resolve(context)
except VariableDoesNotExist:
obj = None
try:
navigation_object_links = Variable('navigation_object_links').resolve(context)
links_dict = navigation_object_links if navigation_object_links else object_navigation
except VariableDoesNotExist:
pass
try:
links = links_dict[menu_name][current_view]['links']