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

Class SynchronizationModule

source code

   pisiinterfaces.AbstractSynchronizationModule --+    
                                                  |    
events.events.AbstractCalendarSynchronizationModule --+
                                                      |
                                                     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
 
saveModifications(self)
Save whatever changes have come by
source code

Inherited from events.events.AbstractCalendarSynchronizationModule: addEvent, allEvents, getEvent, removeEvent, replaceEvent

Inherited from pisiinterfaces.AbstractSynchronizationModule: addEntry, allEntries, flush, 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 (events.AbstractCalendarSynchronizationModule.__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__