Edit File: post_modify_domain.cpython-37.pyc
B �eR � @ s� d Z ddlmZ ddlmZ ddlmZ ddlZddlmZ ddlm Z e dk�r�e � eje d �Zej d d�Zejdd d�Zejddddd� ejddddd� ejddd�Zejddddd� ejddddd� ejddddd� ejddddd d!� ejd"d#d�Zejddddd� ejddddd� e�� Ze� Zejdk�rXe�ejej� nJejdk�r�ejejejejejd$� n"ejd"k�r�e�ejej� ne�dS )%z� Domain POST modification hook. This script must be called AFTER different domain-related changes in control panel. See --help and docs for detailed description of actions and parameters. � )�absolute_import)�division)�print_functionN)�ModifyDomainHook)�setup_logger_and_sentry�__main__)Zdescription�command)�destZcreatezH[NOT FOR VENDORS PANELS INTEGRATION] Call when domain record is created.)�helpz --usernamez-uTzUser that owns domain.)�requiredr z--domainz-dsz"Domain name e.g.: `userdomain.com`ZmodifyzhCall when domain record is updated (e.g all sites that have worked on old domain now work on a new one).z1Domain name before rename, e.g.: `userdomain.com`z--new-domainz-dtz0Domain name after rename, e.g.: `userdomain2.eu`z--include-subdomainsF� store_truez�If set, we will also process all domains that end with domain name (subdomains). E.g. when renaming olddomain.com -> newdomain.eu we will also rename sub.olddomain.com to sub.newdomain.eu)r �default�actionr �deletezG[NOT FOR INTEGRATED CONTROL PANELS] Call when domain record is deleted.)�include_subdomains)�__doc__Z __future__r r r �argparseZclcommon.public_hooks.libr Zclcommon.public_hooksr �__name__�ArgumentParser�parserZadd_subparsersZ subparsersZ add_parserZ create_domain�add_argumentZ modify_domain� parse_args�args�hookr Zpost_create_domainZusernameZdomainZpost_modify_domainZ new_domainr Zpost_delete_domain�NotImplementedError� r r ��/builddir/build/BUILDROOT/alt-python27-cllib-3.3.5-1.el8.cloudlinux.x86_64/opt/alt/python37/lib/python3.7/site-packages/clcommon/public_hooks/bin/post_modify_domain.py�<module> sT