

def attach_file(self, n):
    'attach a file from the `FileData` table'
    from frappe.utils.file_manager import get_file
    res = get_file(n)
    if (not res):
        return
    self.add_attachment(self[0], res[1])

dataset/ETHPy150Open frappe/frappe/frappe/email/email_body.py EMail.attach_file/VarMisuse@45/69 `res`->`self`