parameters: (self, app_label)
return_statement: return ret
docstring: 获取某个APP的菜单
docstring_summary: 获取某个APP的菜单
docstring_tokens: 获取某个APP的菜单
function: def get_app_menu(self, app_label):
          '''
          获取某个APP的菜单
          '''
          if not self.sys_menu_loaded:self.get_sys_menu()
          m_menu = self.sys_menu[app_label]
          m_app = self.app_dict[app_label]
          ret = []
          if hasattr(m_app,'menus'):
              m_menus = m_app.menus
              for e in m_menus:
                  ret.append(m_menu[e[0]])
          if len(m_menu['_default_group'])>0:
                  ret.append(m_menu['_default_group'])
          return ret
function_tokens: def get_app_menu ( self , app_label ) : if not self . sys_menu_loaded : self . get_sys_menu ( ) m_menu = self . sys_menu [ app_label ] m_app = self . app_dict [ app_label ] ret = [ ] if hasattr ( m_app , 'menus' ) : m_menus = m_app . menus for e in m_menus : ret . append ( m_menu [ e [ 0 ] ] ) if len ( m_menu [ '_default_group' ] ) > 0 : ret . append ( m_menu [ '_default_group' ] ) return ret