<?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: Disabling users instead of deleting.</title>
	<atom:link href="http://www.splee.co.uk/2006/09/07/disabling-users-instead-of-deleting/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.splee.co.uk/2006/09/07/disabling-users-instead-of-deleting/</link>
	<description>Bring out the g33k</description>
	<pubDate>Thu, 20 Nov 2008 12:37:45 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: Splee</title>
		<link>http://www.splee.co.uk/2006/09/07/disabling-users-instead-of-deleting/#comment-7109</link>
		<dc:creator>Splee</dc:creator>
		<pubDate>Mon, 11 Sep 2006 13:28:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.splee.co.uk/2006/09/07/disabling-users-instead-of-deleting/#comment-7109</guid>
		<description>That works fine as long as there\'s no encryption algorithm set in your `app.cfg`.  As soon as you decide you want to store passwords in a more secure manner your method of disabling the user is non-reversable and not the desired behaviour for this scenario in particular.</description>
		<content:encoded><![CDATA[<p>That works fine as long as there\&#8217;s no encryption algorithm set in your <code>app.cfg</code>.  As soon as you decide you want to store passwords in a more secure manner your method of disabling the user is non-reversable and not the desired behaviour for this scenario in particular.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Damjan</title>
		<link>http://www.splee.co.uk/2006/09/07/disabling-users-instead-of-deleting/#comment-6831</link>
		<dc:creator>Damjan</dc:creator>
		<pubDate>Fri, 08 Sep 2006 20:00:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.splee.co.uk/2006/09/07/disabling-users-instead-of-deleting/#comment-6831</guid>
		<description>How about just changing the users password with adding a illegal character to it. The if you need to enable the user remove the character.</description>
		<content:encoded><![CDATA[<p>How about just changing the users password with adding a illegal character to it. The if you need to enable the user remove the character.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Splee</title>
		<link>http://www.splee.co.uk/2006/09/07/disabling-users-instead-of-deleting/#comment-6763</link>
		<dc:creator>Splee</dc:creator>
		<pubDate>Thu, 07 Sep 2006 15:04:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.splee.co.uk/2006/09/07/disabling-users-instead-of-deleting/#comment-6763</guid>
		<description>Because I want to be certain that the exception bubbles up to the SOProvider if the `self.by_email_address()` call raises an `SQLObjectNotFound`.

It may still work your way but I\'m not certain of it.  I will test it out later today.

I can axe one line already by removing the `else:` clause but the readability increase is negligible.</description>
		<content:encoded><![CDATA[<p>Because I want to be certain that the exception bubbles up to the SOProvider if the <code>self.by_email_address()</code> call raises an <code>SQLObjectNotFound</code>.</p>
<p>It may still work your way but I\&#8217;m not certain of it.  I will test it out later today.</p>
<p>I can axe one line already by removing the <code>else:</code> clause but the readability increase is negligible.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthias Urlichs</title>
		<link>http://www.splee.co.uk/2006/09/07/disabling-users-instead-of-deleting/#comment-6762</link>
		<dc:creator>Matthias Urlichs</dc:creator>
		<pubDate>Thu, 07 Sep 2006 14:32:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.splee.co.uk/2006/09/07/disabling-users-instead-of-deleting/#comment-6762</guid>
		<description>Why write eight lines, when four do the same thing and are (IMHO) much more readable?

    u = self.by_email_address(text)
    if u.disabled:
        raise SQLObjectNotFound
    return u</description>
		<content:encoded><![CDATA[<p>Why write eight lines, when four do the same thing and are (IMHO) much more readable?</p>
<pre><code>u = self.by_email_address(text)
if u.disabled:
    raise SQLObjectNotFound
return u
</code></pre>
]]></content:encoded>
	</item>
</channel>
</rss>
