def __init__(self, engine, path):
    '\n        @param engine: The engine that instanciated this plugin.\n        @type engine: L{Engine}\n        @param path: The path of the plugin file to load.\n        @type path: I{str}\n\n        @raise ValueError: If the path to the plugin is not a valid file.\n        '
    self._engine = engine
    self._path = path
    if (not os.path.isfile(path)):
        raise ValueError(('The path to the plugin is not a valid file - %s.' % path))
    self._pluginName = os.path.splitext(os.path.split(self._path)[1])[0]
    self._active = True
    self._callbacks = []
    self._mtime = None
    self._lastEventId = None
    self._backlog = {}
    self.logger = logging.getLogger(('plugin.' + self.getName()))
    self.logger.config = self._engine.config
    self._engine.setEmailsOnLogger(self.logger, True)
    self.logger.setLevel(self._engine.config.getLogLevel())
    if (self._engine.config.getLogMode() == 1):
        _setFilePathOnLogger(self.logger, self._engine.config.getLogFile(('plugin.' + self.getName())))
@param engine: The engine that instanciated this plugin.
@type engine: L{Engine}
@param path: The path of the plugin file to load.
@type path: I{str}

@raise ValueError: If the path to the plugin is not a valid file.
def __init__(self, engine, path):
    '\n        @param engine: The engine that instanciated this plugin.\n        @type engine: L{Engine}\n        @param path: The path of the plugin file to load.\n        @type path: I{str}\n\n        @raise ValueError: If the path to the plugin is not a valid file.\n        '
    self._engine = engine
    self._path = path
    if (not os.path.isfile(path)):
        raise ValueError(('The path to the plugin is not a valid file - %s.' % path))
    self._pluginName = os.path.splitext(os.path.split(self._path)[1])[0]
    self._active = True
    self._callbacks = []
    self._mtime = None
    self._lastEventId = None
    self._backlog = {}
    self.logger = logging.getLogger(('plugin.' + self.getName()))
    self.logger.config = self._engine.config
    self._engine.setEmailsOnLogger(self.logger, True)
    self.logger.setLevel(self._engine.config.getLogLevel())
    if (self._engine.config.getLogMode() == 1):
        _setFilePathOnLogger(self.logger, self._engine.config.getLogFile(('plugin.' + self.getName())))