Edit File: awp.cpython-311.pyc
� 5/9e� � � � d dl Z d dlmZmZ d dlmZ d dlmZ d dlm Z d dl mZ dZdZ ed � � d � � � Z ed� � ded efd�� � ZdS )� N)�run�task)�configure_accelerate_wp)� is_ubuntu)�Feature)�is_panel_feature_supported�allowed_for_all� accelerate_wpzEnabling Accelerate WPc � � t � � rt j d� � dS t t j � � st j d� � dS t � � dS # t $ r t j d� � Y dS w xY w)z% Set AccelerateWP free suite zFAccelerateWP setup upon new server is skipped: Ubuntu is not supportedNzMAccelerateWP setup upon new server is skipped: Control Panel is not supportedz7AccelerateWP configuration upon new server setup failed) r �logging�warningr r �WPOSr � Exception� exception� � �py/clconfigure/awp.py�enable_accelerate_wp_freer s� � � �{�{� ���`�a�a�a���%�g�l�3�3� ���g�h�h�h���U��!�!�!�!�!��� U� U� U���S�T�T�T�T�T�T�U���s �A% �%B�Bz7Changing Accelerate WP suite {suite} status to {status}�suite�statusc �d � |t k rt ddd| dg� � dS t d|� � �)z2 Set AccelerateWP suite to desired state. zcloudlinux-awp-adminz set-suitez--suitesz--allowed-for-allz#Currently not implemented status %sN)�STATUS_ALLOWED_FOR_ALLr �NotImplementedError)r r s r �set_suite_statusr # sB � � �'�'�'�� #�[�*�e�EX�Y�Z�Z�Z�Z�Z�!�"G��P�P�Pr )r �clconfigurer r �clcommon.clwpos_libr �clcommon.lib.cleditionr �clcommon.constr �clcommon.cpapir r �SUITE_AWP_FREEr �strr r r r �<module>r"