def public_worksheet_download(id, title): from worksheet import unconditional_download worksheet_filename = "pub" + "/" + id try: worksheet = g.notebook.get_worksheet_with_filename(worksheet_filename) except KeyError: return current_app.message(_("You do not have permission to access this worksheet")) return unconditional_download(worksheet, title)
def public_worksheet_download(id, title): from worksheet import unconditional_download worksheet_filename = "pub" + "/" + id try: worksheet = g.notebook.get_worksheet_with_filename(worksheet_filename) except KeyError: return current_app.message(_("You do not have permission to access this worksheet")) return unconditional_download(worksheet, title)