<?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: group_required decorator</title>
	<atom:link href="http://www.ninjacipher.com/2008/06/20/group_required-decorator/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ninjacipher.com/2008/06/20/group_required-decorator/</link>
	<description>kungpow programming</description>
	<lastBuildDate>Fri, 28 May 2010 00:41:12 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: User links about "decorator" on iLinkShare</title>
		<link>http://www.ninjacipher.com/2008/06/20/group_required-decorator/comment-page-1/#comment-232</link>
		<dc:creator>User links about "decorator" on iLinkShare</dc:creator>
		<pubDate>Sat, 04 Apr 2009 15:18:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.ninjacipher.com/?p=49#comment-232</guid>
		<description>[...] ago2 votesDecorator Pattern - Decorating among Decorators&gt;&gt; saved by uberwald 16 days ago3 votesgroup_required decorator&gt;&gt; saved by fatalscorpion 32 days ago6 votesDesign Patterns - Decorator Pattern&gt;&gt; saved by ferlachat [...]</description>
		<content:encoded><![CDATA[<p>[...] ago2 votesDecorator Pattern &#8211; Decorating among Decorators&gt;&gt; saved by uberwald 16 days ago3 votesgroup_required decorator&gt;&gt; saved by fatalscorpion 32 days ago6 votesDesign Patterns &#8211; Decorator Pattern&gt;&gt; saved by ferlachat [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Recent URLs tagged Decorator - Urlrecorder</title>
		<link>http://www.ninjacipher.com/2008/06/20/group_required-decorator/comment-page-1/#comment-192</link>
		<dc:creator>Recent URLs tagged Decorator - Urlrecorder</dc:creator>
		<pubDate>Thu, 30 Oct 2008 05:01:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.ninjacipher.com/?p=49#comment-192</guid>
		<description>[...] Recent public urls tagged &quot;decorator&quot;  &#8594; group_required decorator [...]</description>
		<content:encoded><![CDATA[<p>[...] Recent public urls tagged &#8220;decorator&#8221;  &rarr; group_required decorator [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mattd</title>
		<link>http://www.ninjacipher.com/2008/06/20/group_required-decorator/comment-page-1/#comment-180</link>
		<dc:creator>mattd</dc:creator>
		<pubDate>Fri, 20 Jun 2008 23:27:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.ninjacipher.com/?p=49#comment-180</guid>
		<description>Makes sense to me :) good call.</description>
		<content:encoded><![CDATA[<p>Makes sense to me <img src='http://www.ninjacipher.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  good call.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: michiel_1981</title>
		<link>http://www.ninjacipher.com/2008/06/20/group_required-decorator/comment-page-1/#comment-179</link>
		<dc:creator>michiel_1981</dc:creator>
		<pubDate>Fri, 20 Jun 2008 19:54:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.ninjacipher.com/?p=49#comment-179</guid>
		<description>Hi,

To make it less error prone move the return view line in a else statement.

try:
    getting group
except:
    return redirect
else:
    return view

This way if a Group.DoesNotExist is raised in your view function it won&#039;t be handled by the decorator.
Which most likely shouldn&#039;t redirect.

- Michiel</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>To make it less error prone move the return view line in a else statement.</p>
<p>try:<br />
    getting group<br />
except:<br />
    return redirect<br />
else:<br />
    return view</p>
<p>This way if a Group.DoesNotExist is raised in your view function it won&#8217;t be handled by the decorator.<br />
Which most likely shouldn&#8217;t redirect.</p>
<p>- Michiel</p>
]]></content:encoded>
	</item>
</channel>
</rss>
