PATH:
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
clcommon
/
public_hooks
/
lib
/
__pycache__
� ��`��5?� �0 � d dl mZ dZ G d� d� � ZdS )� )�hook_methodzAleksandr Shyshatskyc �b � e Zd ZdZdZed� � � Ze dd�� � Zed� � � ZdS )�ModifyDomainHookzs This hook provides bunch of events related to domain manipulations like create, rename, transit, etc. r c � � dS )z� Called when domain is created in control panel. :param username: owner of the domain :param domain: name before rename N� ��self�username�domains ��/builddir/build/BUILDROOT/alt-python27-cllib-3.4.35-1.el9.cloudlinux.x86_64/opt/cloudlinux/venv/lib/python3.11/site-packages/clcommon/public_hooks/lib/modify_domain_hook.py�post_create_domainz#ModifyDomainHook.post_create_domain s � � �� Nc � � dS )ad Called when domain is renamed in control panel. Also called when the whole site is transferred to new domain. Also called when subdomain document root is changed. :param username: owner of the domain :param domain: name before rename :param new_domain: name after rename [optional] :param include_subdomains: whether subdomains are renamed too [optional] :param old_docroot: old document root path for the domain [optional] :param new_docroot: new document root path for the domain [optional] :param kwargs: any other args Nr )r r r � new_domain�include_subdomains�old_docroot�new_docroot�kwargss r �post_modify_domainz#ModifyDomainHook.post_modify_domain s � �&