<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Anentropic Blog</title>
	<atom:link href="http://anentropic.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://anentropic.wordpress.com</link>
	<description>Creative programming, music, writing etc.</description>
	<lastBuildDate>Fri, 27 Jan 2012 16:35:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='anentropic.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/e8d03f27aaf303a21877151376396386?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Anentropic Blog</title>
		<link>http://anentropic.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://anentropic.wordpress.com/osd.xml" title="Anentropic Blog" />
	<atom:link rel='hub' href='http://anentropic.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Django custom fields: descriptor class gotcha</title>
		<link>http://anentropic.wordpress.com/2011/10/21/django-custom-fields-descriptor-class-gotcha/</link>
		<comments>http://anentropic.wordpress.com/2011/10/21/django-custom-fields-descriptor-class-gotcha/#comments</comments>
		<pubDate>Fri, 21 Oct 2011 11:54:18 +0000</pubDate>
		<dc:creator>anentropic</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://anentropic.wordpress.com/?p=127</guid>
		<description><![CDATA[Let&#8217;s say you are making a custom field type that uses different attname and name properties, like ForeignKey fields do. Probably this is so that you can store the raw value in the db under field.attname, while transparently accessing a converted value via field.name Probably to make that mechanism work you are needing a descriptor [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anentropic.wordpress.com&amp;blog=7098800&amp;post=127&amp;subd=anentropic&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Let&#8217;s say you are making a custom field type that uses different <strong><em>attname</em></strong> and <strong><em>name</em></strong> properties, like ForeignKey fields do.</p>
<p>Probably this is so that you can store the raw value in the db under <em>field.attname</em>, while transparently accessing a converted value via <em>field.name</em></p>
<p>Probably to make that mechanism work you are needing a descriptor class, much like a ForeignKey field has a <em>ReverseSingleRelatedObjectDescriptor</em> which handles the get/set functionality for the field &#8211; allowing you to get or set model instances, while a plain id is saved in the db under <em>field.attname</em>.</p>
<p>Since there&#8217;s no specific docs on how to do this you probably started by copying Django&#8217;s example, like the ForeignKey mechanism above.<span id="more-127"></span></p>
<p>Long story short, there&#8217;s some untidy magic in <strong><em>Model.__init__</em></strong> and a gotcha or two that can trip you up: <a href="https://code.djangoproject.com/ticket/17080">https://code.djangoproject.com/ticket/17080</a></p>
<p>TLDR?</p>
<p>Ok, just be sure your custom descriptor subclasses <strong><em>property</em></strong>, instead of <strong><em>object</em></strong> even though all the existing ones built into Django subclass <em>object</em>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anentropic.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anentropic.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anentropic.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anentropic.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/anentropic.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/anentropic.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/anentropic.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/anentropic.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anentropic.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anentropic.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anentropic.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anentropic.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anentropic.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anentropic.wordpress.com/127/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anentropic.wordpress.com&amp;blog=7098800&amp;post=127&amp;subd=anentropic&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://anentropic.wordpress.com/2011/10/21/django-custom-fields-descriptor-class-gotcha/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/481f8ec4fe0149f2b3851eee91c23b8e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">anentropic</media:title>
		</media:content>
	</item>
		<item>
		<title>quickie: jQuery array comparison helper</title>
		<link>http://anentropic.wordpress.com/2011/03/03/quickie-jquery-array-comparison-helper/</link>
		<comments>http://anentropic.wordpress.com/2011/03/03/quickie-jquery-array-comparison-helper/#comments</comments>
		<pubDate>Thu, 03 Mar 2011 21:21:46 +0000</pubDate>
		<dc:creator>anentropic</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://anentropic.wordpress.com/?p=107</guid>
		<description><![CDATA[I was looking for an answer to this question today an ended up answering it myself. jQuery.extend({     arrayCompare: function (arrayA, arrayB) {         if (arrayA.length != arrayB.length) { return false; }         // sort modifies original array         // (which are passed by reference [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anentropic.wordpress.com&amp;blog=7098800&amp;post=107&amp;subd=anentropic&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I was looking for an answer to <a href="http://stackoverflow.com/questions/1773069/using-jquery-to-compare-two-arrays/5186565">this question</a> today an ended up <a href="http://stackoverflow.com/questions/1773069/using-jquery-to-compare-two-arrays/5186565#5186565">answering</a> it myself.</p>
<pre><code>jQuery.extend({
    arrayCompare: function (arrayA, arrayB) {
        if (arrayA.length != arrayB.length) { return false; }
        // sort modifies original array
        // (which are passed by reference to our method!)
        // so clone the arrays before sorting
        var a = jQuery.extend(true, [], arrayA);
        var b = jQuery.extend(true, [], arrayB);
        a.sort();
        b.sort();
        for (var i = 0, l = a.length; i &lt; l; i++) {
            if (a[i] !== b[i]) {
                return false;
            }
        }
        return true;
    }
});

var a = [1, 2, 3];
var b = [2, 3, 4];
var c = [3, 4, 2];

jQuery.arrayCompare(a, b);
// false

jQuery.arrayCompare(b, c);
// true

// c is still unsorted [3, 4, 2]
</code></pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anentropic.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anentropic.wordpress.com/107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anentropic.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anentropic.wordpress.com/107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/anentropic.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/anentropic.wordpress.com/107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/anentropic.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/anentropic.wordpress.com/107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anentropic.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anentropic.wordpress.com/107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anentropic.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anentropic.wordpress.com/107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anentropic.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anentropic.wordpress.com/107/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anentropic.wordpress.com&amp;blog=7098800&amp;post=107&amp;subd=anentropic&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://anentropic.wordpress.com/2011/03/03/quickie-jquery-array-comparison-helper/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/481f8ec4fe0149f2b3851eee91c23b8e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">anentropic</media:title>
		</media:content>
	</item>
		<item>
		<title>Python-style template strings for AS3</title>
		<link>http://anentropic.wordpress.com/2010/10/06/python-style-template-strings-for-as3/</link>
		<comments>http://anentropic.wordpress.com/2010/10/06/python-style-template-strings-for-as3/#comments</comments>
		<pubDate>Wed, 06 Oct 2010 16:25:13 +0000</pubDate>
		<dc:creator>anentropic</dc:creator>
				<category><![CDATA[AS3]]></category>

		<guid isPermaLink="false">http://anentropic.wordpress.com/?p=101</guid>
		<description><![CDATA[http://gist.github.com/613564 Currently only handles the &#8216;dict of vars&#8217; style substitution and probably doesn&#8217;t handle escaping and other edge-cases properly. Fine for a bit of quick and dirty string action though.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anentropic.wordpress.com&amp;blog=7098800&amp;post=101&amp;subd=anentropic&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://gist.github.com/613564" target="_blank">http://gist.github.com/613564</a></p>
<p>Currently only handles the &#8216;dict of vars&#8217; style substitution and probably doesn&#8217;t handle escaping and other edge-cases properly. Fine for a bit of quick and dirty string action though.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anentropic.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anentropic.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anentropic.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anentropic.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/anentropic.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/anentropic.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/anentropic.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/anentropic.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anentropic.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anentropic.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anentropic.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anentropic.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anentropic.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anentropic.wordpress.com/101/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anentropic.wordpress.com&amp;blog=7098800&amp;post=101&amp;subd=anentropic&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://anentropic.wordpress.com/2010/10/06/python-style-template-strings-for-as3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/481f8ec4fe0149f2b3851eee91c23b8e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">anentropic</media:title>
		</media:content>
	</item>
		<item>
		<title>Doing my bit to Promote JS</title>
		<link>http://anentropic.wordpress.com/2010/09/27/doing-my-bit-to-promote-js/</link>
		<comments>http://anentropic.wordpress.com/2010/09/27/doing-my-bit-to-promote-js/#comments</comments>
		<pubDate>Mon, 27 Sep 2010 09:37:32 +0000</pubDate>
		<dc:creator>anentropic</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://anentropic.wordpress.com/?p=98</guid>
		<description><![CDATA[This is a great campaign to bump up the Google rank of proper Javascript docs, to get them up above the noise, making them easier to find. I&#8217;m doing my bit by posting this here, if you want to help then get your own code and join in.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anentropic.wordpress.com&amp;blog=7098800&amp;post=98&amp;subd=anentropic&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a title="JavaScript JS Documentation: JS Array slice, JavaScript Array slice, JS Array .slice, JavaScript Array .slice" href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array"><img src="http://static.jsconf.us/promotejsvs.png" alt="JavaScript JS Documentation: JS Array slice, JavaScript Array slice, JS Array .slice, JavaScript Array .slice" width="160" height="280" /></a><br />
This is a great campaign to bump up the Google rank of proper Javascript docs, to get them up above the noise, making them easier to find. I&#8217;m doing my bit by posting this here, if you want to help then <a href="http://promotejs.com/">get your own code</a> and join in.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anentropic.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anentropic.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anentropic.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anentropic.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/anentropic.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/anentropic.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/anentropic.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/anentropic.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anentropic.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anentropic.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anentropic.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anentropic.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anentropic.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anentropic.wordpress.com/98/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anentropic.wordpress.com&amp;blog=7098800&amp;post=98&amp;subd=anentropic&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://anentropic.wordpress.com/2010/09/27/doing-my-bit-to-promote-js/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/481f8ec4fe0149f2b3851eee91c23b8e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">anentropic</media:title>
		</media:content>

		<media:content url="http://static.jsconf.us/promotejsvs.png" medium="image">
			<media:title type="html">JavaScript JS Documentation: JS Array slice, JavaScript Array slice, JS Array .slice, JavaScript Array .slice</media:title>
		</media:content>
	</item>
		<item>
		<title>JS+Django: streaming multi-part ajax responses (MXHR)</title>
		<link>http://anentropic.wordpress.com/2010/05/14/jsdjango-streaming-multi-part-ajax-responses-mxhr/</link>
		<comments>http://anentropic.wordpress.com/2010/05/14/jsdjango-streaming-multi-part-ajax-responses-mxhr/#comments</comments>
		<pubDate>Fri, 14 May 2010 18:08:50 +0000</pubDate>
		<dc:creator>anentropic</dc:creator>
				<category><![CDATA[Django]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Ajax]]></category>
		<category><![CDATA[MXHR]]></category>

		<guid isPermaLink="false">http://anentropic.wordpress.com/?p=89</guid>
		<description><![CDATA[Ajax is great eh? What did it stand for again&#8230;? Asynchronuous Javascript And XML? Anyone actually sending back XML in their Ajax app these days? I find, if I have the choice, I&#8217;m using JSON for sending the data back. Then, for those times where you don&#8217;t want to duplicate all of the templating logic [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anentropic.wordpress.com&amp;blog=7098800&amp;post=89&amp;subd=anentropic&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Ajax is great eh? What did it stand for again&#8230;? Asynchronuous Javascript And XML?</p>
<p>Anyone actually sending back XML in their Ajax app these days?</p>
<p>I find, if I have the choice, I&#8217;m using JSON for sending the data back. Then, for those times where you don&#8217;t want to duplicate all of the templating logic from the server in your Javascript code just to &#8216;Ajax&#8217; a form or something, I find I will often render a bit of HTML and send that back, even if it feels a bit dirty. It&#8217;s easy and there&#8217;s a certain DRYness that&#8217;s undeniable.</p>
<p>So it&#8217;s only a matter of time before you start thinking, as a did, &#8220;Sure, I <em>could</em> make half a dozen separate XHR requests, but what I really need to do here is send back a package of identifiable HTML and JSON chunks.&#8221;</p>
<p><span id="more-89"></span>Some kind of multi-part response basically. Hang on, I&#8217;ve heard of that before&#8230; something to do with email, or file uploads?</p>
<p>A quick search reveals some talk about how to do a multi-part form post via Ajax: basically it&#8217;s not possible, the XHR object doesn&#8217;t support it. That&#8217;s not what we want though&#8230; we want to parse multi-part data in the response.</p>
<p>It turns out all the browsers, except (of course) IE6, will give you access to the response body while the response is still loading. The multi-part format is pretty simple, each part is just separated by a delimiter string (<a href="http://tools.ietf.org/html/rfc2046#section-5.1" target="_blank">see the IETF RFC here</a>). So, we can write some js to parse the multi-part response and make it happen!</p>
<p>Well, actually I figured someone must have done it already.</p>
<h3>I found this one first: <a href="http://test.getify.com/mpAjax/description.html" target="_blank">mpAjax</a></h3>
<p>It does the job, but doesn&#8217;t exactly follow the RFC. The script requires the boundary delimiter to have a random id appended to the end, where as the RFC seems to specify that the delimiters should all be identical. The RFC also provides a mechanism for specifying a different mime type for each part, with mpAjax your script will need to know in advance which mime type to expect for each part.</p>
<h3>Bingo! <a href="http://about.digg.com/blog/duistream-and-mxhr" target="_blank">DUI Stream</a></h3>
<p>The other thing with mpAjax is that it doesn&#8217;t try and process each part as they arrive, it waits for the whole response before parsing. Well for the team at Digg it seems the &#8216;streaming&#8217; aspect was the main point. They have an <a href="http://demos.digg.com/stream/imageDemo.html" target="_blank">interesting demo</a> where even stream down dozens of small (Base64-encoded&#8230;) GIF images via ajax, all in one request.</p>
<p>All good, they do streaming and they stick close to the RFC, allowing you to specify the mime type for each part. They put it up on GitHub in April &#8217;09 promising a few enhancements and some more documentation would be forthcoming, but nothing has happened publicly since then.</p>
<p>After using the code a bit I took it on myself to fork and implement a few changes, such as: make the request via either GET or POST, make the request more than once (!), let it work &#8211; albeit without streaming &#8211; in IE6, and the ability to parse your own custom headers for each part.</p>
<p>Code is <a href="http://github.com/anentropic/stream/" target="_blank">here on GitHub</a>.</p>
<h3>Django&#8230;</h3>
<p>So, how do you output a multi-part http response from Django?</p>
<p>Glad you asked. Here&#8217;s <a href="http://github.com/anentropic/stream/blob/master/http.py" target="_blank">four solutions</a> (hacked out of a recent project I worked on)&#8230; all of which sub-class the django HttpResponse.</p>
<p>First up is a kind of base MultipartHttpResponse. Next is a sub-class of that which works with <strong>mpAjax</strong>.</p>
<p>Third is a sub-class that does true streaming, via a generator in the _make_body method. This is built-in django goodness, though be careful as I&#8217;ve read that some middleware modules can negate the streaming behaviour (they will consume the whole generator before passing on any output). This one will work with <strong>DUI Stream</strong>.</p>
<p>To use it, pass a list of (mime-type str, body) tuples as parts when initialising the response, eg:</p>
<pre style="font-size:9.5px;margin:1em;">parts = [
    (MIME_HTML,
     """&lt;div&gt;response&lt;/div&gt;"""),
    (MIME_JSON,
    json.dumps(data)),
]

return StreamingMultipartHttpResponse(parts)</pre>
<p>Easy.</p>
<p>Finally, there&#8217;s a sub-class of the above designed to take advantage of my tweaked version of the DUI Stream js. Code is as above, except that it takes a dict of headers in place of the mime-type string above, eg:</p>
<pre style="font-size:9.5px;margin:1em;">parts = [
    ({
        'Content-Type': MIME_HTML,
        'Content-ID': '%s|%s' % (i, x),
    },
     """&lt;div&gt;response&lt;/div&gt;"""),
    ({
        'Content-Type': MIME_JSON,
        'Content-ID': '%s|%s' % (i, x+1),
    },
    json.dumps(data)),
]

return DUI_MXHR_Response(parts)</pre>
<p>Cool?</p>
<p>You can check the DUI examples for the js side, but the code is nice and simple. You can register a handler function for each mime-type, which will fire whenever a part with that type has finished streaming down, eg:</p>
<pre style="font-size:9.5px;margin:1em;">    dui_stream_obj = new DUI.Stream();

    dui_stream_obj.listen('application/json', handleJson);
    dui_stream_obj.listen('text/html', handleHtml);
    dui_stream_obj.listen('complete', streamCheckComplete);</pre>
<p>Nice.</p>
<p>If you&#8217;re using my version then your handler function will receive an array of headers for that part, eg:</p>
<pre style="font-size:9.5px;margin:1em;">function handleHtml(data, headers) {
    var path = headers['Content-ID'];
    ...</pre>
<p>Done.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anentropic.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anentropic.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anentropic.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anentropic.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/anentropic.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/anentropic.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/anentropic.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/anentropic.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anentropic.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anentropic.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anentropic.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anentropic.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anentropic.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anentropic.wordpress.com/89/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anentropic.wordpress.com&amp;blog=7098800&amp;post=89&amp;subd=anentropic&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://anentropic.wordpress.com/2010/05/14/jsdjango-streaming-multi-part-ajax-responses-mxhr/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/481f8ec4fe0149f2b3851eee91c23b8e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">anentropic</media:title>
		</media:content>
	</item>
		<item>
		<title>Django: export CSV admin action</title>
		<link>http://anentropic.wordpress.com/2010/05/14/django-export-csv-admin-action/</link>
		<comments>http://anentropic.wordpress.com/2010/05/14/django-export-csv-admin-action/#comments</comments>
		<pubDate>Fri, 14 May 2010 14:41:31 +0000</pubDate>
		<dc:creator>anentropic</dc:creator>
				<category><![CDATA[Django]]></category>

		<guid isPermaLink="false">http://anentropic.wordpress.com/?p=84</guid>
		<description><![CDATA[Just a quickie&#8230; If you&#8217;ve ever needed this: Then here&#8217;s some handy code to do that. You can customise and use this action (actually a sort of action factory function) with any of your models which need it.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anentropic.wordpress.com&amp;blog=7098800&amp;post=84&amp;subd=anentropic&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Just a quickie&#8230;</p>
<p>If you&#8217;ve ever needed this:</p>
<p><a href="http://anentropic.files.wordpress.com/2010/05/picture-1.png"><img class="alignnone size-full wp-image-85" title="Picture 1" src="http://anentropic.files.wordpress.com/2010/05/picture-1.png?w=630" alt=""   /></a></p>
<p>Then <a href="http://djangosnippets.org/snippets/2020/" target="_blank">here&#8217;s some handy code</a> to do that.</p>
<p>You can customise and use this action (actually a sort of action factory function) with any of your models which need it.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anentropic.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anentropic.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anentropic.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anentropic.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/anentropic.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/anentropic.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/anentropic.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/anentropic.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anentropic.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anentropic.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anentropic.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anentropic.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anentropic.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anentropic.wordpress.com/84/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anentropic.wordpress.com&amp;blog=7098800&amp;post=84&amp;subd=anentropic&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://anentropic.wordpress.com/2010/05/14/django-export-csv-admin-action/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/481f8ec4fe0149f2b3851eee91c23b8e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">anentropic</media:title>
		</media:content>

		<media:content url="http://anentropic.files.wordpress.com/2010/05/picture-1.png" medium="image">
			<media:title type="html">Picture 1</media:title>
		</media:content>
	</item>
		<item>
		<title>Django: optiongroups for your ModelChoice Field</title>
		<link>http://anentropic.wordpress.com/2010/03/23/django-optiongroups-for-your-modelchoice-field/</link>
		<comments>http://anentropic.wordpress.com/2010/03/23/django-optiongroups-for-your-modelchoice-field/#comments</comments>
		<pubDate>Tue, 23 Mar 2010 17:13:26 +0000</pubDate>
		<dc:creator>anentropic</dc:creator>
				<category><![CDATA[Django]]></category>

		<guid isPermaLink="false">http://anentropic.wordpress.com/?p=81</guid>
		<description><![CDATA[With a normal Django ChoiceField you can specify choices either as a simple tuple of tuples (value, label pairs) or with an extra level structure to organise the choices into named groups. The Django Select widget will then happily render the choices into html optiongroups. With a ModelChoiceField you don&#8217;t specify the choices directly, you [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anentropic.wordpress.com&amp;blog=7098800&amp;post=81&amp;subd=anentropic&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>With a normal Django ChoiceField you can specify choices either as a simple tuple of tuples (value, label pairs) or with an extra level structure to organise the choices into named groups. The Django Select widget will then happily render the choices into html optiongroups.</p>
<p>With a ModelChoiceField you don&#8217;t specify the choices directly, you give a queryset of results from the db, which just has a flat structure.</p>
<p>I&#8217;ve made a &#8216;GroupedModelChoiceField&#8217; that allows to output optiongroups based on a field from the model in your queryset. Code is <a href="http://www.djangosnippets.org/snippets/1968/" target="_blank">here</a> on djangosnippets&#8230; simple as that!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anentropic.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anentropic.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anentropic.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anentropic.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/anentropic.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/anentropic.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/anentropic.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/anentropic.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anentropic.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anentropic.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anentropic.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anentropic.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anentropic.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anentropic.wordpress.com/81/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anentropic.wordpress.com&amp;blog=7098800&amp;post=81&amp;subd=anentropic&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://anentropic.wordpress.com/2010/03/23/django-optiongroups-for-your-modelchoice-field/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/481f8ec4fe0149f2b3851eee91c23b8e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">anentropic</media:title>
		</media:content>
	</item>
		<item>
		<title>Django: chaining custom model Manager methods</title>
		<link>http://anentropic.wordpress.com/2010/03/12/django-chaining-custom-model-manager-methods/</link>
		<comments>http://anentropic.wordpress.com/2010/03/12/django-chaining-custom-model-manager-methods/#comments</comments>
		<pubDate>Fri, 12 Mar 2010 15:33:40 +0000</pubDate>
		<dc:creator>anentropic</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://anentropic.wordpress.com/?p=77</guid>
		<description><![CDATA[As Simon Willison points out: &#8220;Django supports adding custom methods for accessing the ORM through the ability to implement a custom Manager&#8230; The downside of this approach is that methods added to a manager can only be used at the beginning of the chain.&#8221; My modest contribution is in this comment on DjangoSnippets&#8230;<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anentropic.wordpress.com&amp;blog=7098800&amp;post=77&amp;subd=anentropic&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>As <a href="http://simonwillison.net/2008/May/1/orm/" target="_blank">Simon Willison points out</a>:</p>
<p>&#8220;Django supports adding custom methods for accessing the ORM through the ability to implement a custom Manager&#8230; The downside of this approach is that methods added to a manager can only be used at the beginning of the chain.&#8221;</p>
<p>My modest contribution is in <a href="http://www.djangosnippets.org/snippets/562/#c2478" target="_blank">this comment</a> on DjangoSnippets&#8230;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anentropic.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anentropic.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anentropic.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anentropic.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/anentropic.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/anentropic.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/anentropic.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/anentropic.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anentropic.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anentropic.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anentropic.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anentropic.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anentropic.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anentropic.wordpress.com/77/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anentropic.wordpress.com&amp;blog=7098800&amp;post=77&amp;subd=anentropic&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://anentropic.wordpress.com/2010/03/12/django-chaining-custom-model-manager-methods/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/481f8ec4fe0149f2b3851eee91c23b8e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">anentropic</media:title>
		</media:content>
	</item>
		<item>
		<title>Snippet: &#8216;exclusive boolean&#8217; field for Django models</title>
		<link>http://anentropic.wordpress.com/2009/12/08/snippet-exclusive-boolean-field-for-django-models/</link>
		<comments>http://anentropic.wordpress.com/2009/12/08/snippet-exclusive-boolean-field-for-django-models/#comments</comments>
		<pubDate>Tue, 08 Dec 2009 13:10:42 +0000</pubDate>
		<dc:creator>anentropic</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://anentropic.wordpress.com/?p=75</guid>
		<description><![CDATA[&#8220;Sometimes you want to be able to make one (and only one) row in your model &#8216;featured&#8217; or &#8216;the default one&#8217;.&#8221; I think the snippet is fairly self explanatory: http://www.djangosnippets.org/snippets/1830/<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anentropic.wordpress.com&amp;blog=7098800&amp;post=75&amp;subd=anentropic&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>&#8220;Sometimes you want to be able to make one (and only one) row in your model &#8216;featured&#8217; or &#8216;the default one&#8217;.&#8221;</p>
<p>I think the snippet is fairly self explanatory:</p>
<p><a href="http://www.djangosnippets.org/snippets/1830/" target="_blank">http://www.djangosnippets.org/snippets/1830/</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anentropic.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anentropic.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anentropic.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anentropic.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/anentropic.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/anentropic.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/anentropic.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/anentropic.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anentropic.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anentropic.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anentropic.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anentropic.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anentropic.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anentropic.wordpress.com/75/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anentropic.wordpress.com&amp;blog=7098800&amp;post=75&amp;subd=anentropic&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://anentropic.wordpress.com/2009/12/08/snippet-exclusive-boolean-field-for-django-models/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/481f8ec4fe0149f2b3851eee91c23b8e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">anentropic</media:title>
		</media:content>
	</item>
		<item>
		<title>More django-mptt goodness: FilteredSelectMultiple m2m widget</title>
		<link>http://anentropic.wordpress.com/2009/11/05/more-django-mptt-goodness-filteredselectmultiple-m2m-widget/</link>
		<comments>http://anentropic.wordpress.com/2009/11/05/more-django-mptt-goodness-filteredselectmultiple-m2m-widget/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 10:42:57 +0000</pubDate>
		<dc:creator>anentropic</dc:creator>
				<category><![CDATA[Django]]></category>
		<category><![CDATA[mptt]]></category>

		<guid isPermaLink="false">http://anentropic.wordpress.com/?p=64</guid>
		<description><![CDATA[If you are using django-mptt to manage content (eg heirarchical categories) then it needs a bit of help to make a nice admin interface. For many-to-many fields, Django provides the quite nice FilteredSelectMultiple widget (a two-pane selection list with search box) but it only renders &#8216;flat&#8217; lists&#8230; if you have a big category tree it&#8217;s [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anentropic.wordpress.com&amp;blog=7098800&amp;post=64&amp;subd=anentropic&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you are using django-mptt to manage content (eg heirarchical categories) then it needs <a href="http://anentropic.wordpress.com/2009/10/26/making-admin-bulk-delete-action-work-with-django-mptt/">a bit of help</a> to make a nice admin interface. For many-to-many fields, Django provides the quite nice FilteredSelectMultiple widget (a two-pane selection list with search box) but it only renders &#8216;flat&#8217; lists&#8230; if you have a big category tree it&#8217;s going to be confusing to know what belongs to what. Also, list items are sorted alphabetically by the js, which won&#8217;t be what you want.</p>
<p>In this post I&#8217;ll be extending FilteredSelectMultiple to show the tree structure in the list:</p>
<p><span id="more-64"></span></p>
<p><img class="alignnone size-full wp-image-67" title="mptt FilteredSelectMultiple widget screenshot" src="http://anentropic.files.wordpress.com/2009/11/picture-2.png?w=630" alt="mptt FilteredSelectMultiple widget screenshot"   /></p>
<p>The code is pretty clean &#8211; no patches to hack! &#8211; and you can get it <a href="http://www.djangosnippets.org/snippets/1779/" target="_blank">here on Django snippets</a>.</p>
<p>You&#8217;ll also need to put this javascript file on your media path: <a href="http://www.djangosnippets.org/snippets/1780/" target="_blank">mptt_m2m_selectbox.js</a></p>
<p>Once you&#8217;ve got those, you just need to use it in your admin form:</p>
<pre style="font-size:9.5px;margin:1em;">class ProductForm(forms.ModelForm):
    categories = MPTTModelMultipleChoiceField(
                    ProductCategory.objects.all(),
                    widget = MPTTFilteredSelectMultiple("Categories",False,attrs={'rows':'10'})
                )
    class Meta:
        model= ProductCategory

class ProductAdmin(admin.ModelAdmin):
    form = ProductForm</pre>
<p>And that&#8217;s about it. You could go further of course, for example by rendering the select list in a fixed-width font you could draw the tree branches in ascii. Probably it would also be useful to show a different representation in the right-hand list (eg to represent the parents of selected categories somehow).</p>
<p>If you make any enhancements or find any bugs then please comment back!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anentropic.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anentropic.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anentropic.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anentropic.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/anentropic.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/anentropic.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/anentropic.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/anentropic.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anentropic.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anentropic.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anentropic.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anentropic.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anentropic.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anentropic.wordpress.com/64/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anentropic.wordpress.com&amp;blog=7098800&amp;post=64&amp;subd=anentropic&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://anentropic.wordpress.com/2009/11/05/more-django-mptt-goodness-filteredselectmultiple-m2m-widget/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/481f8ec4fe0149f2b3851eee91c23b8e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">anentropic</media:title>
		</media:content>

		<media:content url="http://anentropic.files.wordpress.com/2009/11/picture-2.png" medium="image">
			<media:title type="html">mptt FilteredSelectMultiple widget screenshot</media:title>
		</media:content>
	</item>
	</channel>
</rss>
