[Vobject] vcard email & address data

Jeffrey Harris jeffrey at osafoundation.org
Sat Sep 19 23:34:46 CDT 2009


Hi Cristian,

>  direccion_contacto=str(v.Address.value) # This doesn’t work

You want v.adr.value, if there's an ADR in your file.

>  email_contacto=str(v.email.value) # This doesn’t work

This should work if there is, in fact, an EMAIL entry.

> If you please tell me what… Where I can find the doc of methods to read
> data?

You probably want to read RFC 2425.  For specific fields that are parsed
into something other than unicode, you can look at the source code for
vobject.vcard.  In general, vcard support is rudimentary and relatively
untested in vobject at this point.

Sincerely,
Jeffrey


More information about the VObject mailing list