[Vobject] Adding multiple addresses of different types

Adam Tauno Williams awilliam at opengroupware.us
Fri Oct 9 07:40:07 CDT 2009


I can add an address to a vCard -

adr = vobject.vcard.Address()
adr.city = address.city
...
card.add('adr').value = adr

But I need to add multiple addresses to the vCard of different types,
like -

ADR;TYPE=OTHER:;;9999 Monroe Ave NW;Grand Rapids;;12345;USA
ADR;TYPE=WORK:;;9999 Monroe Ave NW;Grand Rapids;;12345;USA
ADR;TYPE=HOME:;;9999 Shirley St NE;Grand Rapids;;12345;USA

I'm a bit stumped how to add differing types for each specific address
and haven't been able to find any examples of such.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://lists.skyhouseconsulting.com/pipermail/vobject/attachments/20091009/c7554069/attachment.pgp 


More information about the VObject mailing list