<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Spotlight PyCon-Tech: feedutil</title>
	<atom:link href="http://dougma.com/archives/52/feed" rel="self" type="application/rss+xml" />
	<link>http://dougma.com/archives/52</link>
	<description>the truth according to Doug</description>
	<lastBuildDate>Mon, 05 Sep 2011 01:44:41 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: J. Heasly</title>
		<link>http://dougma.com/archives/52/comment-page-1#comment-4722</link>
		<dc:creator>J. Heasly</dc:creator>
		<pubDate>Mon, 05 Sep 2011 01:44:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.dougma.com/archives/49#comment-4722</guid>
		<description>In the aggregator_view, using Python 2.6, the line
&lt;code&gt;entries = sorted(chain(*feeds), key=&quot;published&quot;, reversed=True)&lt;/code&gt;
threw an error:
&lt;blockquote&gt;
TypeError at /aggregator/
&#039;reversed&#039; is an invalid keyword argument for this function
&lt;/blockquote&gt;
So I changed &lt;code&gt;reversed=True&lt;/code&gt; to &lt;code&gt;reverse=True&lt;/code&gt; (took &#039;d&#039; off the end of reverse) and the new error was
&lt;blockquote&gt;
TypeError at /aggregator/
&#039;str&#039; object is not callable
&lt;/blockquote&gt;
so then I changed it to
&lt;code&gt;
entries = sorted(chain(*feeds), key=lambda feeds: feeds[&#039;published&#039;], reverse=True)
&lt;/code&gt;
which seems to work.
HTH somebody else ...</description>
		<content:encoded><![CDATA[<p>In the aggregator_view, using Python 2.6, the line<br />
<code>entries = sorted(chain(*feeds), key="published", reversed=True)</code><br />
threw an error:</p>
<blockquote><p>
TypeError at /aggregator/<br />
&#8216;reversed&#8217; is an invalid keyword argument for this function
</p></blockquote>
<p>So I changed <code>reversed=True</code> to <code>reverse=True</code> (took &#8216;d&#8217; off the end of reverse) and the new error was</p>
<blockquote><p>
TypeError at /aggregator/<br />
&#8216;str&#8217; object is not callable
</p></blockquote>
<p>so then I changed it to<br />
<code><br />
entries = sorted(chain(*feeds), key=lambda feeds: feeds['published'], reverse=True)<br />
</code><br />
which seems to work.<br />
HTH somebody else &#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

