<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>i must be an acrobat &#187; Launchpad</title>
	<atom:link href="http://joshuahoover.com/category/launchpad/feed/" rel="self" type="application/rss+xml" />
	<link>http://joshuahoover.com</link>
	<description>a blog by joshua hoover</description>
	<lastBuildDate>Sat, 10 Apr 2010 14:56:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
<atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/><cloud domain='joshuahoover.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
		<item>
		<title>Adding tags to a Launchpad bug using launchpadlib</title>
		<link>http://joshuahoover.com/2009/09/04/adding-tags-to-launchpad-using-launchpadlib/</link>
		<comments>http://joshuahoover.com/2009/09/04/adding-tags-to-launchpad-using-launchpadlib/#comments</comments>
		<pubDate>Fri, 04 Sep 2009 16:57:54 +0000</pubDate>
		<dc:creator>Joshua Hoover</dc:creator>
				<category><![CDATA[Launchpad]]></category>

		<guid isPermaLink="false">http://joshuahoover.com/?p=568</guid>
		<description><![CDATA[I found the solution here but it was buried a bit in the bug comments. If you ever try something like the code below to append a tag to an existing Launchpad bug using launchpadlib, it won&#8217;t work work. It fails silently. bug = launchpad.bugs[1] bug.tags.append('new-tag') bug.lp_save() The solution is to do something like this [...]]]></description>
			<content:encoded><![CDATA[<p>I found the solution <a title="appending tags to bug.tags is not supported properly on lp_save()" href="https://bugs.edge.launchpad.net/launchpadlib/+bug/254901">here</a> but it was buried a bit in the bug comments. If you ever try something like the code below to append a tag to an existing Launchpad bug using <a title="launchpadlib help page" href="https://help.launchpad.net/API/launchpadlib">launchpadlib</a>, it won&#8217;t work work. It fails silently.</p>
<pre>bug = launchpad.bugs[1]
bug.tags.append('new-tag')
bug.lp_save()</pre>
<p>The solution is to do something like this instead:</p>
<pre>bug = launchpad.bugs[1]
bug.tags = bug.tags + ['new-tag']
bug.lp_save()</pre>
<p>Not too bad. Of course, if you try the first approach initially, which seems like it would/should work but fails silently, you could go out of your mind. Sanity returns.</p>
<p> <img src='http://joshuahoover.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://joshuahoover.com/2009/09/04/adding-tags-to-launchpad-using-launchpadlib/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
