Package pyxmpp :: Package jabber :: Module vcard :: Class VCardAdr
[hide private]

Class VCardAdr

source code

VCardField --+
             |
            VCardAdr

Address vCard field.
Instance Methods [hide private]
 
__init__(self, name, value, rfc2425parameters=None)
Initialize a VCardAdr object.
source code
 
__from_xml(self, value)
Initialize a VCardAdr object from and XML element.
source code
str
rfc2426(self)
RFC2426-encode the field content.
source code
libxml2.xmlNode
as_xml(self, parent)
Create vcard-tmp XML representation of the field.
source code

Inherited from VCardField: __repr__

Instance Variables [hide private]
: unicode ctry
: the country.
: unicode extadr
: the extended address.
: unicode locality
: the locality (e.g.
: unicode pcode
: the postal code.
: unicode pobox
: the post office box.
: unicode region
: the region.
: unicode street
: the street address.
: list of "home","work","postal","parcel","dom","intl" or "pref" type
: type of the address.

Inherited from VCardField: name

Method Details [hide private]

__init__(self, name, value, rfc2425parameters=None)
(Constructor)

source code 
Initialize a VCardAdr object.
Parameters:
  • name (: str) - : field name
  • value (: str or libxml2.xmlNode) - : field value as string or an XML node
  • rfc2425parameters (: dict) - : optional RFC 2425 parameters
Overrides: VCardField.__init__

__from_xml(self, value)

source code 
Initialize a VCardAdr object from and XML element.
Parameters:
  • value (: libxml2.xmlNode) - : field value as an XML node

rfc2426(self)

source code 
RFC2426-encode the field content.
Returns: str
the field in the RFC 2426 format.
Overrides: VCardField.rfc2426

as_xml(self, parent)

source code 
Create vcard-tmp XML representation of the field.
Parameters:
  • parent (: libxml2.xmlNode) - : parent node for the element
Returns: libxml2.xmlNode
xml node with the field data.

Instance Variable Details [hide private]

locality

: the locality (e.g. city).
Type:
: unicode