Package modules :: Module contacts_ldap :: Class SynchronizationModule
[hide private]
[frames] | no frames]

Class SynchronizationModule

source code

      pisiinterfaces.AbstractSynchronizationModule --+    
                                                     |    
contacts.contacts.AbstractContactSynchronizationModule --+
                                                         |
                                                        SynchronizationModule

The implementation of the interface contacts.AbstractContactSynchronizationModule for the LDAP backend

Instance Methods [hide private]
 
__init__(self, modulesString, config, configsection, folder, verbose=False, soft=False)
Constructor
source code
 
_extractAtt(self, contactEntry, key)
Supporting method for loading content from the LDAP
source code
 
load(self)
Loads all attributes for all contact items from LDAP repository
source code
 
saveModifications(self)
Stub: To save all changes that have come by
source code

Inherited from contacts.contacts.AbstractContactSynchronizationModule: addContact, allContacts, flush, getContact, removeContact, replaceContact

Inherited from pisiinterfaces.AbstractSynchronizationModule: addEntry, allEntries, getDescription, getEntry, getName, postProcess, preProcess, prettyPrint, removeEntry, replaceEntry

Instance Variables [hide private]
Method Details [hide private]

__init__(self, modulesString, config, configsection, folder, verbose=False, soft=False)
(Constructor)

source code 

Constructor

Super class constructor (contacts.AbstractContactSynchronizationModule.__init__) is called. Local variables are initialized. The settings from the configuration file are loaded.

Overrides: pisiinterfaces.AbstractSynchronizationModule.__init__

_extractAtt(self, contactEntry, key)

source code 

Supporting method for loading content from the LDAP

Catches possible exceptions and takes care of proper (unicode) encoding.

load(self)

source code 

Loads all attributes for all contact items from LDAP repository

For each entry a new contacts.contacts.Contact instance is created and stored in the instance dictionary contacts.AbstractContactSynchronizationModule._allContacts.

saveModifications(self)

source code 

Stub: To save all changes that have come by

Saving for LDAP is not yet implemented. This function only raIses an exception (ValueError), informing about this status of implementation.