def __init__(self): """ Init Object AuditWriterDB """ Singleton.__init__(self) AuditWriterI.__init__(self) # self.fqdn contains the agent FQDN. self.fqdn = socket.getfqdn()
def __init__(self, config=None, init=True): Singleton.__init__(self) if not hasattr(self, "logaction"): if config == None: from mmc.plugins.base import BasePluginConfig from mmc.support.config import PluginConfigFactory try: # Read the configuration self.make(PluginConfigFactory.new(BasePluginConfig, "base"), init) except IOError: # Fallback on default configuration self.make(None, init) else: self.make(config, init)
def __init__(self, config=None, init=True): Singleton.__init__(self) if not hasattr(self, 'logaction'): if config == None: from mmc.plugins.base import BasePluginConfig from mmc.support.config import PluginConfigFactory try: # Read the configuration self.make( PluginConfigFactory.new(BasePluginConfig, 'base'), init) except IOError: # Fallback on default configuration self.make(None, init) else: self.make(config, init)
def __init__(self): Singleton.__init__(self) self.logger = logging.getLogger()
def __init__(self): Singleton.__init__(self)