gddlZddlmZmZddlmZddlmZddlm Z ddl m Z dZ dZ ed d Zed d ed efdZdS)N)runtask)configure_accelerate_wp)Feature)is_panel_feature_supported) is_ubuntuallowed_for_all accelerate_wpzEnabling Accelerate WPc^trtjddSttjstjddS t n$#t$rtjdYnwxYwtj dtgddS)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 failedzETurning off notifications and automatic WordPress plugin installation)/usr/bin/cloudlinux-awp-adminz set-optionsz--smart-advice-notificationsoffz--smart-advice-wordpress-pluginr z--smart-advice-remindersr ) rloggingwarningrrWPOSr Exception exceptioninforpy/clconfigure/awp.pyenable_accelerate_wp_freers {{`aaa %gl 3 3ghhhU!!!! UUUSTTTTTU LXYYY , , ,-----sA$$BBz7Changing Accelerate WP suite {suite} status to {status}suitestatusch|tkrtddd|dgdStd|)z2 Set AccelerateWP suite to desired state. r z set-suitez--suitesz--allowed-for-allz!Currently not implemented status N)STATUS_ALLOWED_FOR_ALLrNotImplementedError)rrs rset_suite_statusr,sH ''' ,k:uNa bccccc!"Nf"N"NOOOr)r clconfigurerrclcommon.clwpos_librclcommon.constrclcommon.cpapirclcommon.utilsrrSUITE_AWP_FREErstrrrrrr%s!!!!!!!!777777""""""555555$$$$$$* -- -0?@@PCPPPPA@PPPr