관리-도구
편집 파일: modify_domain_hook.cpython-311.pyc
� \�Dg � �0 � d dl mZ dZ G d� d� � ZdS )� )�hook_methodzAleksandr Shyshatskyc �Z � e Zd ZdZdZed� � � Zedd�� � 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/BUILD/imunify360-venv-2.4.0/opt/imunify360/venv/lib/python3.11/site-packages/clcommon/public_hooks/lib/modify_domain_hook.py�post_create_domainz#ModifyDomainHook.post_create_domain s � � �� Nc � � dS )a� Called when domain is renamed in control panel. Also called when the whole site is transferred to new domain. :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 kwargs: any other args Nr )r r r � new_domain�include_subdomains�kwargss r �post_modify_domainz#ModifyDomainHook.post_modify_domain s � � �r c � � dS )z� Called when domain is completely removed from control panel, but domain owner still exists as unix user. :param username: owner of the domain :param domain: name before rename Nr r s r �post_delete_domainz#ModifyDomainHook.post_delete_domain) s � � �r )NN) �__name__� __module__�__qualname__�__doc__�HOOK_VERSIONr r r r r r r r r sy � � � � � �� � �L�� � � �[� � � � � � �[� � � � � �[� � � r r N)�helpersr � __author__r r r r �<module>r sP �� !� � � � � � #� �% � % � % � % � % � % � % � % � % � % r