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

Class SynchronizationModule

source code

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

Instance Methods [hide private]
 
__init__(self, modulesString, config, configsection, folder, verbose=False, soft=False)
Constructor
source code
 
load(self)
Load all data from backend
source code
 
_generateEDS_ID(self)
IDs from EDS look like being a 16 digit Hex String
source code
 
_applyEDSChangesToVcf(self, j, id) source code
 
_saveAdd(self, id, file) source code
 
_saveDel(self, id, file) source code
 
_saveModify(self, id, file) 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. The settings from the configuration file are loaded.

Parameters:
  • modulesString - is a small string to help you make a unique id. It is the two modules configuration-names concatinated.
  • config - is the configuration from ~/.pisi/conf. Use like config.get(configsection,'user')
  • configsection - is the configuration from ~/.pisi/conf. Use like config.get(configsection,'user')
  • folder - is a string with the location for where your module can save its own files if necessary
  • verbose - should make your module "talk" more
  • soft - should tell you if you should make changes (ie. save)
Overrides: pisiinterfaces.AbstractSynchronizationModule.__init__