(self, filter_configuration)
return filter_format
Return the UCR filter type that should be used for the given filter configuration (passed from the UI).
Return the UCR filter type that should be used for the given filter configuration (passed from the UI).
Return the UCR filter type that should be used for the given filter configuration ( passed from the UI ) .
def _get_filter_format(self, filter_configuration):
        """
        Return the UCR filter type that should be used for the given filter configuration (passed from the UI).
        """
        selected_filter_type = filter_configuration['format']
        if not selected_filter_type or self._type in ('question', 'meta'):
            if self._type == 'question':
                filter_format = get_filter_format_from_question_type(self._source['type'])
            else:
                assert self._type == 'meta'
                filter_format = get_filter_format_from_question_type(self._source[1])
        else:
            filter_format = const.REPORT_BUILDER_FILTER_TYPE_MAP[selected_filter_type]
        return filter_format
def _get_filter_format ( self , filter_configuration ) : selected_filter_type = filter_configuration [ 'format' ] if not selected_filter_type or self . _type in ( 'question' , 'meta' ) : if self . _type == 'question' : filter_format = get_filter_format_from_question_type ( self . _source [ 'type' ] ) else : assert self . _type == 'meta' filter_format = get_filter_format_from_question_type ( self . _source [ 1 ] ) else : filter_format = const . REPORT_BUILDER_FILTER_TYPE_MAP [ selected_filter_type ] return filter_format