https://t.me/AnonymousX5
Server : Apache
System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64
User : njnconst ( 1116)
PHP Version : 8.4.18
Disable Function : NONE
Directory :  /opt/alt/python37/lib/python3.7/site-packages/clcommon/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //opt/alt/python37/lib/python3.7/site-packages/clcommon/__pycache__/clemail.cpython-37.pyc
B

(
c
�@sJddlmZddlmZddlmZddlZddlZdZGdd�d�ZdS)�)�absolute_import)�division)�print_functionNzSubject:c@s&eZdZdZdd�Zeddd��ZdS)�ClEmailz-
    class for generation email messages
    cCsdS)N�)�selfrr�A/opt/alt/python37/lib/python3.7/site-packages/clcommon/clemail.py�__init__szClEmail.__init__NcCs�t�tj�|��}tj|d�}|�tj�|���|��	d�}t
|�dkr�|d�t�r�|ddkr�|d�
td���}|�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��)�jinja2ZFileSystemLoader�os�path�dirnameZEnvironmentZget_template�basenameZrender�split�len�
startswith�SUBJECT_LINE_PREFIX�replace�strip�pop�join)Z
template_pathZ
templ_dataZsubjectZtempl_loaderZtempl_envirZ
message_linesrrr�generate_mail_jinja2s
&

zClEmail.generate_mail_jinja2)N)�__name__�
__module__�__qualname__�__doc__r	�staticmethodrrrrrrsr)Z
__future__rrrrrrrrrrr�<module>s

https://t.me/AnonymousX5 - 2025