Package conduit :: Package datatypes :: Module Contact :: Class Contact
[hide private]

Class Contact

source code


Very basic contact representation

Instance Methods [hide private]
 
__init__(self, **kwargs) source code
 
set_from_vcard_string(self, string) source code
 
get_vcard_string(self, version=2.1) source code
 
get_emails(self) source code
 
get_name(self) source code
 
set_name(self, **kwargs) source code
 
set_emails(self, *args) source code
 
__getstate__(self)
Store the object state in a dict for pickling
source code
 
__setstate__(self, data)
Set object state from dict (after unpickling)
source code
 
__str__(self)
str(x)
source code
 
get_hash(self) source code

Inherited from DataType.DataType: compare, get_UID, get_mtime, get_open_URI, get_rid, get_snippet, get_tags, get_type, set_UID, set_mtime, set_open_URI, set_tags

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__

Class Variables [hide private]
string _name_ = "contact"
The name of the type
Instance Variables [hide private]

Inherited from DataType.DataType: UID, URI

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, **kwargs)
(Constructor)

source code 
Parameters:
  • vcard - A vobject.vcard.VCard3_0 instance
Overrides: DataType.DataType.__init__

__getstate__(self)

source code 
Store the object state in a dict for pickling
Overrides: DataType.DataType.__getstate__
(inherited documentation)

__setstate__(self, data)

source code 
Set object state from dict (after unpickling)
Overrides: DataType.DataType.__setstate__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 
str(x)
Overrides: object.__str__
(inherited documentation)

get_hash(self)

source code 
Overrides: DataType.DataType.get_hash