(self, repeat_record, payload)
return True
Sends API request and returns response if ``payload`` is a form
        that is configured to be forwarded to DHIS2.

        If ``payload`` is a form that isn't configured to be forwarded,
        returns True.
Sends API request and returns response if ``payload`` is a form
        that is configured to be forwarded to DHIS2.
Sends API request and returns response if payload is a form that is configured to be forwarded to DHIS2 .
def send_request(self, repeat_record, payload):
        """
        Sends API request and returns response if ``payload`` is a form
        that is configured to be forwarded to DHIS2.

        If ``payload`` is a form that isn't configured to be forwarded,
        returns True.
        """
        # Notify admins if API version is not supported
        self.get_api_version()

        requests = self.connection_settings.get_requests(repeat_record.payload_id)
        for form_config in self.dhis2_config.form_configs:
            if form_config.xmlns == payload['form']['@xmlns']:
                try:
                    return send_dhis2_event(
                        requests,
                        form_config,
                        payload,
                    )
                except (RequestException, HTTPError, ConfigurationError) as err:
                    requests.notify_error(f"Error sending Events to {self}: {err}")
                    raise
        return True
def send_request ( self , repeat_record , payload ) : # Notify admins if API version is not supported self . get_api_version ( ) requests = self . connection_settings . get_requests ( repeat_record . payload_id ) for form_config in self . dhis2_config . form_configs : if form_config . xmlns == payload [ 'form' ] [ '@xmlns' ] : try : return send_dhis2_event ( requests , form_config , payload , ) except ( RequestException , HTTPError , ConfigurationError ) as err : requests . notify_error ( f"Error sending Events to {self}: {err}" ) raise return True