Package modules :: Module contacts_syncml :: 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 SyncML server connectivity

Instance Methods [hide private]
 
__init__(self, modulesString, config, configsection, folder, verbose=False, soft=False)
Constructor
source code
 
load(self)
Loads all attributes for all contact entries from the SyncML backend
source code
 
saveModifications(self)
Save whatever changes 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.

Overrides: pisiinterfaces.AbstractSynchronizationModule.__init__

load(self)

source code 

Loads all attributes for all contact entries from the SyncML backend

For each entry a new contacts.contacts.Contact instance is created and stored in the instance dictionary contacts.AbstractContactSynchronizationModule._allContacts. For data parsing (VCF) the tools layer in vobjecttools is used.

saveModifications(self)

source code 

Save whatever changes have come by

The history of actions for this data source is iterated. For each item in there the corresponding action is carried out on the item in question. For data assembling (VCF) the tools layer in vobjecttools is used.