Changeset View
Changeset View
Standalone View
Standalone View
pykolab/auth/ldap/syncrepl.py
Show All 11 Lines | |||||
log = pykolab.getLogger('pykolab.syncrepl') | log = pykolab.getLogger('pykolab.syncrepl') | ||||
conf = pykolab.getConf() | conf = pykolab.getConf() | ||||
class DNSync(ldap.ldapobject.LDAPObject,ldap.syncrepl.SyncreplConsumer): | class DNSync(ldap.ldapobject.LDAPObject,ldap.syncrepl.SyncreplConsumer): | ||||
callback = None | callback = None | ||||
def __init__(self, filename, *args, **kwargs): | def __init__(self, filename, *args, **kwargs): | ||||
if kwargs.has_key('callback'): | if 'callback' in kwargs: | ||||
self.callback = kwargs['callback'] | self.callback = kwargs['callback'] | ||||
del kwargs['callback'] | del kwargs['callback'] | ||||
ldap.ldapobject.LDAPObject.__init__(self, *args, **kwargs) | ldap.ldapobject.LDAPObject.__init__(self, *args, **kwargs) | ||||
self.__db = anydbm.open(filename, 'c', 0o640) | self.__db = anydbm.open(filename, 'c', 0o640) | ||||
self.__presentUUIDs = {} | self.__presentUUIDs = {} | ||||
def syncrepl_set_cookie(self,cookie): | def syncrepl_set_cookie(self,cookie): | ||||
▲ Show 20 Lines • Show All 91 Lines • Show Last 20 Lines |