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)
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'"
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 /api.staging. launchpad. net/beta/ bugs/256503>
Out[25]: <bug at https:/
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'"