Reputation: 18745
I'm trying to build a vcard
using vobject
python library. The server uses multiple phone types like this:
TEL;TYPE="HOME","VOICE":111111111
TEL;TYPE="WORK","VOICE":4444444444
So I'm trying to do the same.
vcard_phone = vcard.add('tel')
vcard_phone.value = "111111111"
vcard_phone.type_param = ["HOME","VOICE"]
But this results to:
TEL;TYPE=WORK,VOICE:4444444444
I think that this is considered to be one value (there are no quotes).
I also tried:
vcard_phone.type_param = '"HOME","VOICE"'
which raises an exception:
vobject.base.VObjectError: "Double quotes aren't allowed in parameter values."
I couldn't find anything regarding this in the docs
. How to do that?
Upvotes: 1
Views: 300