""" import os import logging from mmc.core.version import scmRevision from mmc.support import mmctools from mmc.support.config import PluginConfig, ConfigException from ConfigParser import NoSectionError, NoOptionError from mmc.core.audit import AuditFactory as AF from mmc.plugins.proxy.audit import AT, AA, PLUGIN_NAME VERSION = "2.5.1" APIVERSION = "1:1:0" REVISION = scmRevision("$Rev$") def getVersion(): return VERSION def getApiVersion(): return APIVERSION def getRevision(): return REVISION def activate(): """ this function define if the module "proxy" can be activated. @return: return True if this module can be activate @rtype: boolean """ config = ProxyConfig("proxy") logger = logging.getLogger() if config.disabled: msg = "disabled by configuration"
from mmc.core.version import scmRevision from mmc.plugins.base import ldapUserGroupControl, BasePluginConfig from mmc.support.mmctools import cleanFilter, shlaunchBackground, progressBackup from mmc.core.audit import AuditFactory as AF from mmc.plugins.samba.audit import AT, AA, PLUGIN_NAME from mmc.plugins.samba.config import SambaConfig from mmc.plugins.samba.smb_conf import SambaConf from mmc.plugins.samba.smb_ldap import SambaLDAP logger = logging.getLogger() VERSION = "2.5.95" APIVERSION = "5:3:4" REVISION = scmRevision("$Rev$") def getVersion(): return VERSION def getApiVersion(): return APIVERSION def getRevision(): return REVISION def activate():
def getRevision(self): return scmRevision("$Rev$")