Package contacts :: Module contacts :: Class Contact
[hide private]
[frames] | no frames]

Class Contact

source code

pisiinterfaces.Syncable --+
                          |
                         Contact

Holds information for a single contact instance.

Instance Methods [hide private]
 
__init__(self, id, attributes)
Initialize contact.
source code
 
compare(self, contactEntry)
Compares this entry with another one and checks, whether all attributes from this one have the same values in the other one and vice verse
source code

Inherited from pisiinterfaces.Syncable: getID, prettyPrint

Method Details [hide private]

__init__(self, id, attributes)
(Constructor)

source code 

Initialize contact.

Parameters:
  • id - is the id the module uses to id the contact
  • attributes - a dictionary with attributes.
Overrides: pisiinterfaces.Syncable.__init__

compare(self, contactEntry)

source code 

Compares this entry with another one and checks, whether all attributes from this one have the same values in the other one and vice verse

Returns:
0 if there is at least a single difference in attributes; 1 if all attributes are the same
Overrides: pisiinterfaces.Syncable.compare