Задать вопрос

Тел: +7 965 3737 888

455

Просмотров

1

Ответов

Generating vCards using VObject

Use this code to generate downloadable vCard objects. See the VObject docs for more details on the API.

Вопрос полезен? Да0/Нет0
file_4235.py(1.8Кб)
None

Ответы (1):

Ответshacker:08.12.2010
Ответ полезен? Да0/Нет0

This turns out to be a case where a "time saving" library could cost you a lot more time than it saves. It's trivial to generate vcards with standard Django templates, using an existing card as a starter template. No external lib needed. This library is a verbose black box with no benefit that I can see (well, it's good for .ics output, but not helpful for vcard output).

Not only that, but it completely falls down when you try to output multiple phone numbers into a single vcard (at least I couldn't figure it out from the snippet provided).