def get_report_data(self, report):
if report.report_id is None or report.status is None:<EOL><INDENT>raise ReportFailureException(report)<EOL><DEDENT>interval = getattr(settings, '<STR_LIT>', <NUM_LIT:5>)<EOL>while report.status != "<STR_LIT>":<EOL><INDENT>if report.status == "<STR_LIT:error>":<EOL><INDENT>raise ReportFailureException(report)<EOL><DEDENT>sleep(interval)<EOL>report = self.get_report_status(report)<EOL><DEDENT>if report.attachment is None or report.attachment.url is None:<EOL><INDENT>return<EOL><DEDENT>data = self._get_report_file(report.attachment.url)<EOL>return data.split("<STR_LIT:\n>")<EOL>
Returns a completed report as a list of csv strings.