@netchampfaris thanks for the help, but that hasn’t solved it for me.
My code:
@frappe.whitelist(allow_guest=True)
def call_download_pdf(doctype, name):
from frappe.utils.print_format import download_pdf
download_pdf(doctype, name)
call_download_pdf(doctype, name)
This still produces these connected errors.
Which looks similar to this other issue posted on discuss.
Following his advice I did this. Which turned up no errors, but my previous code still failed. I’m unsure how to resolve this and would appreciate more help.
Thank you
P.S.
I forgot to mention before, but I already tried something similar to this; I edited frappe/utils/print_format.download_pdf, line 44, to be
@frappe.whitelist(allow_guest=True)
def download_pdf(doctype, name, format=None, doc=None):
instead of:
@frappe.whitelist()
def download_pdf(doctype, name, format=None, doc=None):
On Gitter @max_morais_dmm said:
allow guestdoesn’t ensure that a guest will have permission to access the data;
it only allows a guest to make a call to a function.