org element is not handled correctly

Bug #1010104 reported by Schwarzburg
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
python-vobject (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

The 'org' entry (Organization) is not handled correctly.

Steps to reproduce:
Enter in python interpreter:

import vobject
v = vobject.vCard()
v.add("fn").value = "s"
v.add("n").value = vobject.vcard.Name("s", "s", "s")
v.add("org").value = "TEST"
v.add("title").value = "test"
print vobject.readOne(v.serialize())
<VCARD| [<VERSION{}3.0>, <FN{}s>, <N{} s s s >, <ORG{}[u'T', u'E', u'S', u'T']>, <TITLE{}>, <TITLE{}test>]>

note the different handling of the org and test value. Note also that it is impossible to add a string that is handled as a string.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in python-vobject (Ubuntu):
status: New → Confirmed
Revision history for this message
Antti Palsola (antti-palsola) wrote :

I don't know if this is a bug or a feature, but the 'ORG' entry seems to take a list value. I. e. try:

v.add("org").value = ["TEST"]

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.