def json_menu(path): """ Read the query string, get the menu and filter on top of the given query string :param path: The query string. :type path: str :return: The menu. :rtype: str|json """ filter_ = make_filter(path.split("/")) menu = filter_menu(get_menu(), filter_) return jsonify(menu=serialize_menu(menu))
def json_menu(path): filter_ = make_filter(path.split('/')) menu = filter_menu(get_menu(), filter_) return jsonify(menu=r1.serialize_menu(menu))
def menu_action_impl(options, _): filter_ = make_filter(filters + options) return format_menu(r1.filter_menu(self.get_menu(), filter_))