ok

Mini Shell

Direktori : /proc/thread-self/root/proc/thread-self/root/usr/lib/python2.7/site-packages/clcommon/
Upload File :
Current File : //proc/thread-self/root/proc/thread-self/root/usr/lib/python2.7/site-packages/clcommon/clemail.pyo

�
b=0Yc@s5ddlZddlZdZddd��YZdS(i����NsSubject:tClEmailcBs)eZd�Zedddd��ZRS(cCsdS(N((tself((s4/usr/lib/python2.7/site-packages/clcommon/clemail.pyt__init__scCs�d}|p|}tjj||�}||krmtjjtjj||��rmtjj||�}ntjj||�}t|d�}|j�}	|j�t|	�dkr|	djt	�r|	ddkr|	dj
t	d�j�}|	jd�|	jd�ng|	D]}
|
j
d�^q}	idj|	�|6}tj|�}tjd	|�}
|
j|�j|�}||jd�fS(
s\
		Generates email message using jinja2 template engine
		:param template_dir: Base templates directory
		:param templ_filename: Template filename
		:param templ_data: Data to fill template using jinja2
		:param locale_name: Locale
		:param subject: Email subject to use if it not found in template
		:return: Cortege (email_subject, email_body)
		ten_UStriiis
tsutf-8tloader(tostpathtjointisfiletopent	readlinestclosetlent
startswithtSUBJECT_LINE_PREFIXtreplacetstriptpoptdecodetjinja2t
DictLoadertEnvironmenttget_templatetrendertencode(ttemplate_dirttempl_filenamet
templ_datatlocale_nametsubjectt
def_localet	templ_dirt
template_filet
f_templatettemplate_linestlt
templ_dictttempl_loaderttempl_envirtbody_message((s4/usr/lib/python2.7/site-packages/clcommon/clemail.pytgenerate_mail_jinja2s(.
5

"N(t__name__t
__module__RtstaticmethodtNoneR*(((s4/usr/lib/python2.7/site-packages/clcommon/clemail.pyR
s	((RRRR(((s4/usr/lib/python2.7/site-packages/clcommon/clemail.pyt<module>s

Zerion Mini Shell 1.0