#NEWLINE# def is_shown( self , request ) : #NEWLINE# #INDENT# "\n        If there aren't any visible items in the submenu, don't bother to show\n        this menu item\n        " #NEWLINE# for menuitem in menuitem . menu . _registered_menu_items : #NEWLINE# #INDENT# if menuitem . is_shown ( request ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# #UNINDENT# return False