'check if user has select correct report format'

def validate_report_format(self):

    valid_report_formats = [u'HTML', u'XLSX', u'CSV']
    if (self.format not in valid_report_formats):
        frappe.throw(_((u'%s    is    not    a    valid    report    format.    Report    format    should     DCTB  DCTB  DCTB  DCTB one    of    the    following    %s' % (frappe.bold(self.format), frappe.bold(u',    '.join(valid_report_formats))))))
