Home | Trees | Index | Help |
|
---|
Package pyxmpp :: Package jabber :: Module vcard :: Class VCard |
|
object
--+ |StanzaPayloadObject
--+ | VCard
Jabber (vcard-temp) or RFC2426 vCard. :Ivariables: - `fn`: full name. - `n`: structural name. - `nickname`: nickname(s). - `photo`: photo(s). - `bday`: birthday date(s). - `adr`: address(es). - `label`: address label(s). - `tel`: phone number(s). - `email`: e-mail address(es). - `jabberid`: JID(s). - `mailer`: mailer(s). - `tz`: timezone(s). - `geo`: geolocation(s). - `title`: title(s). - `role`: role(s). - `logo`: logo(s). - `org`: organization(s). - `categories`: categories. - `note`: note(s). - `prodid`: product id(s). - `rev`: revision(s). - `sort-string`: sort string(s). - `sound`: sound(s). - `uid`: user identifier(s). - `url`: URL(s). - `class`: class(es). - `key`: key(s). - `desc`: description. :Types: - `fn`: `VCardString`, - `n`: `VCardName`, - `nickname`: `list` of `VCardString` - `photo`: `list` of `VCardImage` - `bday`: `list` of `VCardString` - `adr`: `list` of `VCardAdr` - `label`: `list` of `VCardLabel` - `tel`: `list` of `VCardTel` - `email`: `list` of `VCardEmail` - `jabberid`: `list` of `VCardJID` - `mailer`: `list` of `VCardString` - `tz`: `list` of `VCardString` - `geo`: `list` of `VCardGeo` - `title`: `list` of `VCardString` - `role`: `list` of `VCardString` - `logo`: `list` of `VCardImage` - `org`: `list` of `VCardOrg` - `categories`: `list` of `VCardCategories` - `note`: `list` of `VCardString` - `prodid`: `list` of `VCardString` - `rev`: `list` of `VCardString` - `sort-string`: `list` of `VCardString` - `sound`: `list` of `VCardSound` - `uid`: `list` of `VCardString` - `url`: `list` of `VCardString` - `class`: `list` of `VCardString` - `key`: `list` of `VCardKey` - `desc`: `list` of `VCardXString`
Method Summary | |
---|---|
Initialize a VCard object from data which may be XML node or an RFC2426 string. | |
__getattr__(self,
name)
| |
__getitem__(self,
name)
| |
__repr__(self)
| |
Complete the XML node with `self` content. | |
Get the RFC2426 representation of `self`. | |
Initialize a VCard object from an RFC2426 string. | |
Initialize a VCard object from XML node. | |
Initialize the mandatory `self.fn` from `self.n`. | |
Parse single RFC2425 record and update attributes of `self`. | |
Inherited from StanzaPayloadObject | |
Get the XML representation of `self`. | |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) |
Class Variable Summary | |
---|---|
dict |
components = {'SOUND': (<class pyxmpp.jabber.vcard.VCard...
|
str |
xml_element_name = 'vCard'
|
str |
xml_element_namespace = 'vcard-temp'
|
Method Details |
---|
__init__(self,
data)
|
complete_xml_element(self, xmlnode, _unused)Complete the XML node with `self` content. Should be overriden in classes derived from `StanzaPayloadObject`. :Parameters: - `xmlnode`: XML node with the element being built. It has already right name and namespace, but no attributes or content. - `_unused`: document to which the element belongs. :Types: - `xmlnode`: `libxml2.xmlNode` - `_unused`: `libxml2.xmlDoc` |
rfc2426(self)Get the RFC2426 representation of `self`. :return: the UTF-8 encoded RFC2426 representation. :returntype: `str` |
__from_rfc2426(self, data)Initialize a VCard object from an RFC2426 string. :Parameters: - `data`: vcard to parse. :Types: - `data`: `libxml2.xmlNode`, `unicode` or `str` |
__from_xml(self, data)Initialize a VCard object from XML node. :Parameters: - `data`: vcard to parse. :Types: - `data`: `libxml2.xmlNode` |
__make_fn(self)Initialize the mandatory `self.fn` from `self.n`. This is a workaround for buggy clients which set only one of them. |
_process_rfc2425_record(self, data)Parse single RFC2425 record and update attributes of `self`. :Parameters: - `data`: the record (probably multiline) :Types: - `data`: `unicode` |
Class Variable Details |
---|
xml_element_name
|
xml_element_namespace
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Wed May 31 22:37:01 2006 | http://epydoc.sf.net |