Gets a list of all comments corresponding to a reference ``Id`` and effective during the entire given date range inclusive but not confined to the date range.

        arg:    reference_id (osid.id.Id): a reference ``Id``
        arg:    from (osid.calendaring.DateTime): from date
        arg:    to (osid.calendaring.DateTime): to date
        return: (osid.commenting.CommentList) - the returned
                ``CommentList``
        raise:  InvalidArgument - ``to`` is less than ``from``
        raise:  NullArgument - ``reference_id, from,`` or ``to`` is
                ``null``
        raise:  OperationFailed - unable to complete request
        raise:  PermissionDenied - authorization failure
        *compliance: mandatory -- This method must be implemented.*

def get_comments_for_reference_on_date(self, reference_id, from_, to):
        """Gets a list of all comments corresponding to a reference ``Id`` and effective during the entire given date range inclusive but not confined to the date range.

        arg:    reference_id (osid.id.Id): a reference ``Id``
        arg:    from (osid.calendaring.DateTime): from date
        arg:    to (osid.calendaring.DateTime): to date
        return: (osid.commenting.CommentList) - the returned
                ``CommentList``
        raise:  InvalidArgument - ``to`` is less than ``from``
        raise:  NullArgument - ``reference_id, from,`` or ``to`` is
                ``null``
        raise:  OperationFailed - unable to complete request
        raise:  PermissionDenied - authorization failure
        *compliance: mandatory -- This method must be implemented.*

        """
        # Implemented from template for
        # osid.relationship.RelationshipLookupSession.get_relationships_for_source_on_date
        comment_list = []
        for comment in self.get_comments_for_reference(reference_id):
            if overlap(from_, to, comment.start_date, comment.end_date):
                comment_list.append(comment)
        return objects.CommentList(comment_list, runtime=self._runtime)