[Vobject] reading vCard extracting type_param

Lars Immisch lars at ibp.de
Fri Apr 11 19:57:36 CDT 2008


>> One more question in this terrain  - how do I reference the type_param 
>> value of a vCard I have just read?
>>
>>  
>>
>> In the actual vCard file I can see the tel: cell; 555-5555 lines as well 
>> as the mobile, work, etc., but from every angle that I can see of the 
>> vCard read via vObject, it doesn’t seem if that data has been derived.
>>
>>  
>>
>> In other words, I can reference each individual number of the tel 
>> component, but cannot determine which it is.
> 
> for t in vc.tel_list:
>      print t.value, t.params.get('TYPE', None)
> 
> Is that what you are looking for?

Responding to myself: no, my suggestion won't help you.

The vcards I deal with look like:

BEGIN:VCARD
VERSION:3.0
FN:Perihel
TEL;type=CELL;type=pref:0155-5555
END:VCARD

- Lars


More information about the VObject mailing list