/
usr
/
lib
/
python2.7
/
site-packages
/
clcommon
/
cpapi
/
plugins
/
Upload Filee
HOME
#!/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)