관리-도구
편집 파일: post_modify_user.cpython-311.pyc
� P�Cg� � �P � d Z ddlZddlmZ ddlmZ edk �r e� � ej e �� � Ze� d�� � Z e � d d �� � Ze� dd dd�� � e� dddd�� � e � dd�� � Ze� dd dd�� � e� ddd�� � e� ddd�� � e � dd�� � Ze� dd dd�� � e � dd�� � Ze� dd dd �� � e� � � Z e� � Zej d k r#e� ej ej �!� � dS ej dk r)e� ej ej ej �"� � dS ej dk re� ej �#� � dS ej dk re� ej �#� � dS e�dS )$z� User POST modification hook. This script must be called AFTER different user-related changes in control panel. See --help and docs for detailed description of actions and parameters. � N)�ModifyUserHook)�setup_logger_and_sentry�__main__)�description�command)�dest�createz7call this command when new system user has been created)�helpz --usernamez-uTzName of a newly created account)�requiredr z--ownerz-oz"User owner: admin or reseller name�modifyz4call this command when user account has been modifedzName of the accountz--new-usernameFzUsername after renamez--new-ownerz<Name of the new vendor of account. Can be admin or reseller.�restorez-call this command when user has been restored�deletez,call this command when user has been deletedzName of a deleted account)�username�owner)r �new_name� new_owner)r )�__doc__�argparse�clcommon.public_hooks.libr �clcommon.public_hooksr �__name__�ArgumentParser�parser�add_subparsers� subparsers� add_parserr �add_argumentr r r � parse_args�args�listenerr �post_create_userr r �post_modify_user�new_usernamer �post_restore_user�post_delete_user�NotImplementedError� � ��/builddir/build/BUILDROOT/alt-python27-cllib-3.4.17-1.el8.cloudlinux.x86_64/opt/cloudlinux/venv/lib/python3.11/site-packages/clcommon/public_hooks/bin/post_modify_user.py�<module>r* sK ��� � ���� 4� 4� 4� 4� 4� 4� 9� 9� 9� 9� 9� 9� �z�������� $�X� $�� 9� 9� 9�F��&�&�I�&�6�6�J� � "� "��P� #� R� R�F� ����d�T�>� � @� @� @� ��� �4�$�A� � C� C� C� � "� "��M� #� O� O�F� ����d�T�2� � 4� 4� 4� ���(�5�4� � 6� 6� 6� ��� ��9� � :� :� :� �#�#��G� $� I� I�G�����t�d�3� � 5� 5� 5� � "� "��E� #� G� G�F� ����d�T�8� � :� :� :� �����D��~���H��|�x����!�!��]��*� "� � � � � � ��� !� !��!�!��]��&��n� "� &� &� &� &� &� ��� "� "��"�"��]� #� $� $� $� $� $� ��� !� !��!�!��]� "� $� $� $� $� $� "�!�i �r(