fj d dl Z d dlZd dlZd dlmZ d dlmZmZ d dlmZ d dl m
Z
d dlmZ
d dlmZ d dlmZ G d d
e Zd Zd Zd
Zd Zd Zd ZdS ) N)Enum)datetime timedelta)docroot)wp_get_constant)gettext)user_context)
disable_quotac e Zd ZdZdZdZdZdS )PluginStatusesa
INSTALLED = plugin exists in MU directory
ERROR = plugin should have been installed: there are advices w/o incompatibility
and created_at > 2days (wordpress-install cron expected to trigger install)
NOT_INSTALLED = plugin does not exist in MU directory:
in ideal world it means whether there are no compatible advices or
wordpress-plugin install cron has not worked yet
INSTALLEDERROR
NOT_INSTALLEDN)__name__
__module____qualname____doc__r
r r W/opt/cloudlinux/venv/lib64/python3.11/site-packages/xray/smart_advice_plugin_helpers.pyr r s)
IE#MMMr r c
t j | rdS t j | }t |j |j 5 t 5 t j | nQ# t $ rD}t j d|t | t t d d}~ww xY w ddd n# 1 swxY w Y ddd dS # 1 swxY w Y dS )z5
Creates MU plugin dir if does not exist yet
Nz