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

Class Event

source code

pisiinterfaces.Syncable --+
                          |
                         Event

Holds information for a single event (Calendar entry) instance

Instance Methods [hide private]
 
__init__(self, id, updated, attributes, attributesToUTF=True)
Initialize event.
source code
 
compare(self, e)
Compares this event with another one
source code
 
merge(self, e)
Merges the event (e) with itself.
source code
 
prettyPrint(self)
Prints all attributes 'nicely'..
source code

Inherited from pisiinterfaces.Syncable: getID

Method Details [hide private]

__init__(self, id, updated, attributes, attributesToUTF=True)
(Constructor)

source code 

Initialize event.

Parameters:
Overrides: pisiinterfaces.Syncable.__init__

compare(self, e)

source code 

Compares this event with another one

Returns:
True, if all attributes (KNOWN_ATTRIBUTES) match, otherwise False
Overrides: pisiinterfaces.Syncable.compare

merge(self, e)

source code 

Merges the event (e) with itself. If two sections are different, use the section from the newest updated.

prettyPrint(self)

source code 

Prints all attributes 'nicely'..

Overrides: pisiinterfaces.Syncable.prettyPrint