(self, filter_results)
Returns the raw form data based on the current filter selection.
Returns the raw form data based on the current filter selection.
Returns the raw form data based on the current filter selection .
def _get_filtered_data(self, filter_results):
        """
        Returns the raw form data based on the current filter selection.
        """
        if not filter_results:
            if self._application_forms:
                return get_all_form_details(self.domain)
            else:
                return []

        parsed_params = FormsByApplicationFilterParams(filter_results)
        if parsed_params.xmlns:
            return get_form_details_for_app_and_xmlns(
                self.domain,
                parsed_params.app_id,
                parsed_params.xmlns,
                deleted=parsed_params.status == PARAM_VALUE_STATUS_DELETED,
            )
        else:
            if not self._application_forms:
                return []
            return self.get_filtered_data_for_parsed_params(
                self.domain, parsed_params
            )
def _get_filtered_data ( self , filter_results ) : if not filter_results : if self . _application_forms : return get_all_form_details ( self . domain ) else : return [ ] parsed_params = FormsByApplicationFilterParams ( filter_results ) if parsed_params . xmlns : return get_form_details_for_app_and_xmlns ( self . domain , parsed_params . app_id , parsed_params . xmlns , deleted = parsed_params . status == PARAM_VALUE_STATUS_DELETED , ) else : if not self . _application_forms : return [ ] return self . get_filtered_data_for_parsed_params ( self . domain , parsed_params )