|
Server : Apache System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64 User : njnconst ( 1116) PHP Version : 8.4.18 Disable Function : NONE Directory : /proc/self/root/lib/python2.7/site-packages/clcommon/cpapi/plugins/ |
Upload File : |
#!/usr/bin/python
# -*- coding: utf-8 -*-
from clcommon.cpapi.cpapiexceptions import NotSupported
from clcommon.cpapi.const import UNKNOWN_CP_NAME
__cpname__ = UNKNOWN_CP_NAME
def db_access():
raise NotSupported('Unable to receive data. Not supported with no the control panel')
def cpusers():
"""
return all users list registered on Control Panel
:return: tuple registered users
"""
raise NotSupported('Getting all users registered in the control panel is not currently supported. '
'Is under development.')
def dblogin_cplogin_pairs(cplogin_lst=None, with_system_users=False):
raise NotSupported('Unable to receive data. Not supported with no the control panel')
def get_admin_email(_hostname=None):
"""
Gets admin email
:param str|None _hostname: for testing
:return: admin's email
:rtype: string
"""
from clcommon.cpapi.plugins.universal import get_admin_email
return get_admin_email(_hostname=_hostname)