#NEWLINE# @ utils . supported_filters ( [ ] ) #NEWLINE# @ database . run_in_session ( ) #NEWLINE# @ user_api . check_user_permission ( permission . PERMISSION_LIST_METADATAS ) #NEWLINE# @ utils . wrap_to_dict ( RESP_UI_METADATA_FIELDS ) #NEWLINE# def get_flavor_ui_metadata( flavor_id , user = None , session = None , **kwargs ) : #NEWLINE# #INDENT# 'Get flavor ui metadata by flavor.' #NEWLINE# metadata = _get_flavor_metadata ( flavor_id ) #NEWLINE# metadata_ui_converter = _get_flavor_metadata_ui_converter ( flavor_id ) #NEWLINE# return _get_ui_metadata ( metadata , metadata_ui_converter )