def __init__(self, sessionBus, objectPath, cfg): dbus.service.Object.__init__(self, sessionBus, objectPath) self.freqUpdatedList = {} self.objDb = objectDatabase.objectDatabase() self.taskMan = taskManagerProxy() self.registeredCallback = {} self.monitoring = {} self.cfg = cfg
def __init__(self, collectionId): self.db = objectDatabase.objectDatabase() self.collection = self.db.getCollection(collectionId)
def __init__(self, rootDir, backupDir, collectionId): self.rootDir = rootDir self.backupDir = backupDir self.lastState = folderStorageStateOnDb(collectionId) self.db = objectDatabase.objectDatabase()