(self, can_access_all_locations, accessible_location_ids, group_ids, user_types, user_ids,
                    location_ids, date_range)
return form_filters
Return a list of `ExportFilter`s for the given ids.
        This list of filters will eventually be ANDed to filter the documents that appear in the export.
        Therefore, the filter will be constructed as such:
            (groups OR user type OR users OR locations) AND date filter AND accessible locations

        :param can_access_all_locations: True if there are no user based location restrictions
        :param accessible_location_ids: If not can_access_all_locations, this is a list of location ids that the
            user is restricted to seeing data from
        :param group_ids:
        :param user_types:
        :param user_ids:
        :param location_ids:
        :param date_range: A DatePeriod or DateSpan
Return a list of `ExportFilter`s for the given ids.
        This list of filters will eventually be ANDed to filter the documents that appear in the export.
        Therefore, the filter will be constructed as such:
            (groups OR user type OR users OR locations) AND date filter AND accessible locations
Return a list of ExportFilter s for the given ids . This list of filters will eventually be ANDed to filter the documents that appear in the export . Therefore the filter will be constructed as such : ( groups OR user type OR users OR locations ) AND date filter AND accessible locations
def get_filters(self, can_access_all_locations, accessible_location_ids, group_ids, user_types, user_ids,
                    location_ids, date_range):
        """
        Return a list of `ExportFilter`s for the given ids.
        This list of filters will eventually be ANDed to filter the documents that appear in the export.
        Therefore, the filter will be constructed as such:
            (groups OR user type OR users OR locations) AND date filter AND accessible locations

        :param can_access_all_locations: True if there are no user based location restrictions
        :param accessible_location_ids: If not can_access_all_locations, this is a list of location ids that the
            user is restricted to seeing data from
        :param group_ids:
        :param user_types:
        :param user_ids:
        :param location_ids:
        :param date_range: A DatePeriod or DateSpan
        """

        form_filters = list(filter(None,
                                   [self._create_user_filter(user_types, user_ids, group_ids, location_ids)]))
        date_filter = self._get_datespan_filter(date_range)
        if date_filter:
            form_filters.append(date_filter)
        if not can_access_all_locations:
            form_filters.append(self._scope_filter(accessible_location_ids))

        return form_filters
def get_filters ( self , can_access_all_locations , accessible_location_ids , group_ids , user_types , user_ids , location_ids , date_range ) : form_filters = list ( filter ( None , [ self . _create_user_filter ( user_types , user_ids , group_ids , location_ids ) ] ) ) date_filter = self . _get_datespan_filter ( date_range ) if date_filter : form_filters . append ( date_filter ) if not can_access_all_locations : form_filters . append ( self . _scope_filter ( accessible_location_ids ) ) return form_filters