Changeset View
Changeset View
Standalone View
Standalone View
pykolab/auth/ldap/syncrepl.py
Show First 20 Lines • Show All 65 Lines • ▼ Show 20 Lines | def syncrepl_delete(self, uuids): | ||||
) | ) | ||||
del self.__db[uuid] | del self.__db[uuid] | ||||
def syncrepl_present(self, uuids, refreshDeletes=False): | def syncrepl_present(self, uuids, refreshDeletes=False): | ||||
if uuids is None: | if uuids is None: | ||||
if refreshDeletes is False: | if refreshDeletes is False: | ||||
nonpresent = [] | nonpresent = [] | ||||
for uuid in self.__db.keys(): | for uuid in self.__db: | ||||
if uuid == 'cookie': continue | if uuid == 'cookie': continue | ||||
if uuid in self.__presentUUIDs: continue | if uuid in self.__presentUUIDs: continue | ||||
nonpresent.append(uuid) | nonpresent.append(uuid) | ||||
self.syncrepl_delete(nonpresent) | self.syncrepl_delete(nonpresent) | ||||
self.__presentUUIDs = {} | self.__presentUUIDs = {} | ||||
else: | else: | ||||
for uuid in uuids: | for uuid in uuids: | ||||
self.__presentUUIDs[uuid] = True | self.__presentUUIDs[uuid] = True | ||||
Show All 37 Lines |