def send_updated_docs(wrapper): from load import get_docinfo get_docinfo(wrapper.doc.doctype, wrapper.doc.name) webnotes.response['main_doc_name'] = wrapper.doc.name webnotes.response['doctype'] = wrapper.doc.doctype webnotes.response['docname'] = wrapper.doc.name webnotes.response['docs'] = wrapper.doclist
def send_updated_docs(wrapper): from load import get_docinfo get_docinfo(wrapper.doc.doctype, wrapper.doc.name) frappe.response['main_doc_name'] = wrapper.doc.name frappe.response['doctype'] = wrapper.doc.doctype frappe.response['docname'] = wrapper.doc.name frappe.response['docs'] = wrapper.doclist
def send_updated_docs(doc): from load import get_docinfo get_docinfo(doc) d = doc.as_dict() if hasattr(doc, 'localname'): d["localname"] = doc.localname frappe.response.docs.append(d)