<?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"
	>
<channel>
	<title>Comments on: django REST redux</title>
	<atom:link href="http://www.stonemind.net/blog/2007/03/08/django-rest-redux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.stonemind.net/blog/2007/03/08/django-rest-redux/</link>
	<description></description>
	<pubDate>Sat, 22 Nov 2008 01:48:01 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: stone mind &#187; Evolving a RESTful Django Contribution</title>
		<link>http://www.stonemind.net/blog/2007/03/08/django-rest-redux/#comment-301</link>
		<dc:creator>stone mind &#187; Evolving a RESTful Django Contribution</dc:creator>
		<pubDate>Fri, 23 Mar 2007 00:22:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.stonemind.net/blog/2007/03/08/django-rest-redux/#comment-301</guid>
		<description>[...] Django REST Redux [...]</description>
		<content:encoded><![CDATA[<p>[...] Django REST Redux [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stone mind &#187; Test Driving a RESTful Django Contribution</title>
		<link>http://www.stonemind.net/blog/2007/03/08/django-rest-redux/#comment-197</link>
		<dc:creator>stone mind &#187; Test Driving a RESTful Django Contribution</dc:creator>
		<pubDate>Fri, 16 Mar 2007 19:12:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.stonemind.net/blog/2007/03/08/django-rest-redux/#comment-197</guid>
		<description>[...] Django REST Redux [...]</description>
		<content:encoded><![CDATA[<p>[...] Django REST Redux [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Samus</title>
		<link>http://www.stonemind.net/blog/2007/03/08/django-rest-redux/#comment-144</link>
		<dc:creator>Samus</dc:creator>
		<pubDate>Fri, 09 Mar 2007 14:29:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.stonemind.net/blog/2007/03/08/django-rest-redux/#comment-144</guid>
		<description>Careful with allowing arbitrary method calls from a client like that.  You'd probably want to first check if the method name is allowed and then use getattr to call your method.</description>
		<content:encoded><![CDATA[<p>Careful with allowing arbitrary method calls from a client like that.  You&#8217;d probably want to first check if the method name is allowed and then use getattr to call your method.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stonemind</title>
		<link>http://www.stonemind.net/blog/2007/03/08/django-rest-redux/#comment-134</link>
		<dc:creator>stonemind</dc:creator>
		<pubDate>Fri, 09 Mar 2007 00:25:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.stonemind.net/blog/2007/03/08/django-rest-redux/#comment-134</guid>
		<description>Thanks for offering another nice suggestion. I might have to add a little comment so I don't get confused about what it does, but otherwise, I think its an improvement.</description>
		<content:encoded><![CDATA[<p>Thanks for offering another nice suggestion. I might have to add a little comment so I don&#8217;t get confused about what it does, but otherwise, I think its an improvement.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David, biologeek</title>
		<link>http://www.stonemind.net/blog/2007/03/08/django-rest-redux/#comment-133</link>
		<dc:creator>David, biologeek</dc:creator>
		<pubDate>Thu, 08 Mar 2007 23:25:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.stonemind.net/blog/2007/03/08/django-rest-redux/#comment-133</guid>
		<description>Another great post, I can't wait for the middleware ;-)

A quick suggestion for your python code but maybe it's a bit obfuscated, instead of:

&lt;code&gt;
if method == 'GET':
    response = object.GET(args)
else:
    response = object.POST(args)
&lt;/code&gt;

you can maybe just use getattr:
&lt;code&gt;
response = getattr(object, method)(args)
&lt;/code&gt;

Anyway, thanks for sharing your code!</description>
		<content:encoded><![CDATA[<p>Another great post, I can&#8217;t wait for the middleware <img src='http://www.stonemind.net/blog/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>A quick suggestion for your python code but maybe it&#8217;s a bit obfuscated, instead of:</p>
<p><code><br />
if method == 'GET':<br />
    response = object.GET(args)<br />
else:<br />
    response = object.POST(args)<br />
</code></p>
<p>you can maybe just use getattr:<br />
<code><br />
response = getattr(object, method)(args)<br />
</code></p>
<p>Anyway, thanks for sharing your code!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
