Package modules :: Module contacts_dbussim :: 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 SIM Card backend accesed via DBUS

Instance Methods [hide private]
 
__init__(self, modulesString, config, configsection, folder, verbose=False, soft=False)
Constructor
source code
 
_determineSimLimitations(self)
Supporting function in order to auto-determine limitation of SIM card (max number of entries and max length of name)
source code
 
load(self)
Load all data from backend
source code
 
_saveOperationAdd(self, sim, id)
Writing through: Adds a single value to the SIM Card
source code
 
_saveOperationDelete(self, sim, id)
Writing through: Removes a single value from the SIM card
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__