app/soc/views/sitemap/sidebar.py
changeset 589 ee9122db04af
parent 586 a4a36b06a870
child 614 53a3e46fc512
equal deleted inserted replaced
588:d6ae9dd215fb 589:ee9122db04af
    32 def getSidebar(request):
    32 def getSidebar(request):
    33   sidebar = []
    33   sidebar = []
    34 
    34 
    35   for callback in SIDEBAR:
    35   for callback in SIDEBAR:
    36     menu = callback(request)
    36     menu = callback(request)
    37     sidebar.append(menu)
    37     
       
    38     if menu:
       
    39       # only if there is a menu we should append it
       
    40       sidebar.append(menu)
    38 
    41 
    39   return sidebar
    42   return sidebar