pyxmpp.jabber.vcard.VCardAdr

Package pyxmpp :: Package jabber :: Module vcard :: Class VCardAdr |
[show private | hide private]
[frames | no frames]

## Class VCardAdr

    VCardField --+
                 |
                VCardAdr

Address vCard field.

Method Summary
| ``__init__`(self, name, value, rfc2425parameters)` Initialize a `VCardAdr` object.
`libxml2.xmlNode` | ``as_xml`(self, parent)` Create vcard-tmp XML representation of the field.
`str` | ``rfc2426`(self)` RFC2426-encode the field content.
| ``__from_xml`(self, value)` Initialize a `VCardAdr` object from and XML element.
Inherited from VCardField
| ``__repr__`(self)`

Instance Variable Summary
`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`: name of the field.

Method Details

### __init__(self, name, value, rfc2425parameters=None) (Constructor) Initialize a `VCardAdr` object. Parameters: `name` - field name (type=`str`) `value` - field value as string or an XML node (type=`str` or `libxml2.xmlNode`) `rfc2425parameters` - optional RFC 2425 parameters (type=`dict`) Overrides: `pyxmpp.jabber.vcard.VCardField.__init__`

### as_xml(self, parent) Create vcard-tmp XML representation of the field. Parameters: `parent` - parent node for the element (type=`libxml2.xmlNode`) Returns: xml node with the field data. (type=`libxml2.xmlNode`)

### rfc2426(self) RFC2426-encode the field content. Returns: the field in the RFC 2426 format. (type=`str`) Overrides: `pyxmpp.jabber.vcard.VCardField.rfc2426`

### __from_xml(self, value) Initialize a `VCardAdr` object from and XML element. Parameters: `value` - field value as an XML node (type=`libxml2.xmlNode`)

Instance Variable Details

### ctry the country. Type: `unicode`

### extadr the extended address. Type: `unicode`

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

### pcode the postal code. Type: `unicode`

### pobox the post office box. Type: `unicode`

### region the region. Type: `unicode`

### street the street address. Type: `unicode`

### type type of the address. Type: `list` of "home","work","postal","parcel","dom","intl" or "pref"