Comment 1 for bug 256697

Revision history for this message
Markus Korn (thekorn) wrote : Re: creating a new bugreport with multible tags is not working

Ok, this is a bit confusing. A json encoded representation of a list seems to be necessary:

In [23]: x = simplejson.dumps(["boo","bar"])

In [24]: b = launchpad.bugs.createBug(target="https://api.staging.launchpad.net/beta/ubuntu", title="this is a test", description="this is the description of the test\nThis bug was created by launchpadlib", tags=x)

In [25]: b
Out[25]: <bug at https://api.staging.launchpad.net/beta/bugs/256503>

Can this json serialization be done internally? - this is also a reason why setting boolean values is not working as expected.

launchpad.bugs.createBug(target="https://api.staging.launchpad.net/beta/ubuntu", title="this is a test", description="this is the description of the test\nThis bug was created by launchpadlib", private=True)

this fails with a HTTPError, content = "private: got 'unicode', expected bool: u'True'"