Viewing File: /opt/imunify360/venv/lib/python3.11/site-packages/clcommon/__pycache__/clemail.cpython-311.pyc



]j4ddlZddlZdZGddZdS)NzSubject:c0eZdZdZdZeddZdS)ClEmailz-
    class for generation email messages
    cdSN)selfs p/builddir/build/BUILD/imunify360-venv-2.6.3/opt/imunify360/venv/lib/python3.11/site-packages/clcommon/clemail.py__init__zClEmail.__init__sNctjtj|}tj|}|tj||	d}t|dkr|dtri|ddkr]|d
td}|d|d|d|fS)a8
        Generates email message using jinja2 template engine
        :param template_path: path to jinja2 template
        :param templ_data: Data to fill template using jinja2
        :param subject: Email subject to use if it not found in template
        :return: Cortege (email_subject, email_body)
        )loader
r)jinja2FileSystemLoaderospathdirnameEnvironmentget_templatebasenamerendersplitlen
startswithSUBJECT_LINE_PREFIXreplacestrippopjoin)
template_path
templ_datasubjecttempl_loadertempl_envir
message_liness      r	generate_mail_jinja2zClEmail.generate_mail_jinja2s#.rw}/M/MNN(===#00G]++


&


%++		}!!mA&6&A&ABU&V&V![hij[koq[q[q#A&../BBGGMMOOGa   a   		-0000rr)__name__
__module____qualname____doc__r
staticmethodr)rrr	rrsM


111\111rr)rrrrrrr	<module>r/sS
			



!
 1 1 1 1 1 1 1 1 1 1r
Back to Directory File Manager