Package events :: Module events :: Class AbstractCalendarSynchronizationModule
[hide private]
[frames] | no frames]

Class AbstractCalendarSynchronizationModule

source code

pisiinterfaces.AbstractSynchronizationModule --+
                                               |
                                              AbstractCalendarSynchronizationModule
Known Subclasses:

Super class for all synchronization modules, which aim to synchronize contacts information.

Each Synchronization class implementing contact synchronization should inherit from this class.

Instance Methods [hide private]
 
__init__(self, verbose, soft, modulesString, config, configsection, name='unkown contact source')
Constructor
source code
 
addEvent(self, eventInstance)
Saves an event for later writing
source code
 
allEvents(self)
Getter.
source code
 
getEvent(self, id)
GETTER
source code
 
removeEvent(self, id)
Removes an event entry
source code
 
replaceEvent(self, id, updatedEvent)
Replaces an existing calendar entry with a new one.
source code

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

Instance Variables [hide private]
  _allEvents
Dictionary to hold all Calendar instances for the implementation.
  _history
Keeps track of all changes applied to the container for this data source (for later write through)
Method Details [hide private]

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

source code 

Constructor

Instance variables are initialized.

Overrides: pisiinterfaces.AbstractSynchronizationModule.__init__

addEvent(self, eventInstance)

source code 

Saves an event for later writing

One entry is added to the history list (_history) with action id for 'add' and the new instance is passed on to the super class method addEntry.

allEvents(self)

source code 

Getter.

Returns:
The link to the instance variable _allEvents.

getEvent(self, id)

source code 

GETTER

Returns:
The link with the given ID.

removeEvent(self, id)

source code 

Removes an event entry

One entry is added to the history list (_history) with action id for 'delete' and the delete command is passed on to the super class method removeEntry.

replaceEvent(self, id, updatedEvent)

source code 

Replaces an existing calendar entry with a new one.

One entry is added to the history list (_history) with action id for 'replace' and the old instance is replaced by the new one by passing it on to the super class method replaceEntry.