Module pisiinterfaces :: Class AbstractSynchronizationModule
[hide private]
[frames] | no frames]

Class AbstractSynchronizationModule

source code

Known Subclasses:

Super class for all synchronization modules, which aim to synchronize any kind of information.

Each Synchronization class should inherit from this class.

Instance Methods [hide private]
 
__init__(self, verbose, soft, modulesString, config, configsection, name='unkown source')
Constructor
source code
 
addEntry(self, entry)
Saves an entry for later writing
source code
 
allEntries(self)
Getter.
source code
 
flush(self)
Remove all entries in repository
source code
 
getDescription(self)
GETTER
source code
 
getEntry(self, id)
GETTER
source code
 
getName(self)
GETTER
source code
 
postProcess(self)
Executes the shell command that has been configured for this source under 'postprocess'
source code
 
preProcess(self)
Executes the shell command that has been configured for this source under 'preprocess'
source code
 
prettyPrint(self)
Beautyful output for the entries in the repository
source code
 
removeEntry(self, id)
Removes an entry
source code
 
replaceEntry(self, id, updatedEntry)
Replaces an existing entry with a new one.
source code
Instance Variables [hide private]
  _allEntries
Dictionary for storing all information entries
Method Details [hide private]

__init__(self, verbose, soft, modulesString, config, configsection, name='unkown source')
(Constructor)

source code 

Constructor

Instance variables are initialized.

addEntry(self, entry)

source code 

Saves an entry for later writing

The new instance is stored in the dictionary (_allEntries).

allEntries(self)

source code 

Getter.

Returns:
The link to the instance variable _allEntries.

flush(self)

source code 

Remove all entries in repository

The dictionary for all entries (_allEntries) is flushed.

getEntry(self, id)

source code 

GETTER

Returns:
The link with the given ID.

prettyPrint(self)

source code 

Beautyful output for the entries in the repository

Prints a small headline and calls the function Syncable.prettyPrint for each contact Entry in turn.

removeEntry(self, id)

source code 

Removes an entry

The instance is removed from the dictionary (_allEntries).

replaceEntry(self, id, updatedEntry)

source code 

Replaces an existing entry with a new one.

The old instance is replaced by the new one in the dictionary (_allEntries).