Implmented conditional show of expand checkbox, initial support for conditional highlight (buggy)

This commit is contained in:
Roberto Rosario
2011-07-06 03:11:48 -04:00
parent ee3abd16ec
commit 2739ad9027
7 changed files with 66 additions and 348 deletions

View File

@@ -115,6 +115,9 @@ def resolve_links(context, links, current_view, current_path, parsed_query_strin
new_link['url'] = urlquote(new_link['url'], parsed_query_string)
else:
new_link['active'] = False
if 'conditional_highlight' in link:
new_link['active'] = link['conditional_highlight'](context)
if 'conditional_disable' in link:
new_link['disabled'] = link['conditional_disable'](context)