def export_opml(): rsp = make_response(export_to_opml()) rsp.headers['Content-Type'] = "application/atom+xml" file_date = datetime.today().strftime("%m-%d-%Y") rsp.headers['Content-Disposition'] = "attachment; filename=\"%s_export.opml\"" % file_date return rsp
def export_opml(): rsp = make_response(export_to_opml()) rsp.headers['Content-Type'] = "application/xml" return rsp