We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Thanks for improving the documentation about multi-value entries (see #78, #79). When rethinking this, I found a few more places for improvement:
The example from the documentation only shows a simple entry. This is an example for adding a second entry:
>>> import vobject >>> j = vobject.vCard() >>> e1 = j.add('email') >>> j.email.value = 'jeffrey@osafoundation.org' # intentionally using a different way here >>> e2 = j.add('email') >>> e2.value = "john@example.com" >>> e1 <EMAIL{}jeffrey@osafoundation.org> >>> e2 <EMAIL{}hartmut@goe-con.de> >>> j.email <EMAIL{}jeffrey@osafoundation.org>
According to this test, it seems that email entries (and presumable tel etc.) are always lists:
email
tel
>>> k = vobject.vCard() >>> k.add('email') <EMAIL{}> >>> k.contents['email'].__class__ <class 'list'>
Please documents this and also which entries are lists.
The text was updated successfully, but these errors were encountered:
Feel free to make a Pull Request with any changes you think would be helpful.
Sorry, something went wrong.
Merge pull request skarim#80 from py-vobject/79-add-version-number-to…
d07626f
…-prodid Fixes skarim#79.
Successfully merging a pull request may close this issue.
Thanks for improving the documentation about multi-value entries (see #78, #79). When rethinking this, I found a few more places for improvement:
1. How to create multi-value entries
The example from the documentation only shows a simple entry. This is an example for adding a second entry:
2. How to determine if an entry is multi-valued?
According to this test, it seems that
email
entries (and presumabletel
etc.) are always lists:Please documents this and also which entries are lists.
The text was updated successfully, but these errors were encountered: