<?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"
	>

<channel>
	<title>DEAN LEE:/DEV/BLOG &#187; python repoze.who</title>
	<atom:link href="http://www.deanlee.cn/tag/python-repoze-who/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.deanlee.cn</link>
	<description>mount /dev/brain &#124;&#124; tail -f /var/log/thoughts &#62;&#62; /pub/www</description>
	<pubDate>Thu, 22 Mar 2012 06:55:19 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
	<language>en</language>
	<atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/>		<item>
		<title>repoze.who: perform login programmatically</title>
		<link>http://www.deanlee.cn/programming/repoze-who-perform-login-programmatically/</link>
		<comments>http://www.deanlee.cn/programming/repoze-who-perform-login-programmatically/#comments</comments>
		<pubDate>Thu, 08 Jul 2010 11:50:49 +0000</pubDate>
		<dc:creator>Dean Lee</dc:creator>
		
		<category><![CDATA[Programming]]></category>

		<category><![CDATA[python repoze.who]]></category>

		<guid isPermaLink="false">http://www.deanlee.cn/programming/repoze-who-perform-login-programmatically/</guid>
		<description><![CDATA[It took me a while to find out how to perform programmatic login using repoze.who.here is the source code:

rememberer = request.environ['repoze.who.plugins']['cookie']
identity = {'repoze.who.userid': user.username}
response.headerlist = response.headerlist + \
	rememberer.remember(request.environ, identity) 
]]></description>
			<content:encoded><![CDATA[<p>It took me a while to find out how to perform programmatic login using <a href="http://static.repoze.org/whodocs/">repoze.who</a>.here is the source code:</p>
</p>
<pre class="prettyprint">rememberer = request.environ['repoze.who.plugins']['cookie']
identity = {'repoze.who.userid': user.username}
response.headerlist = response.headerlist + \
	rememberer.remember(request.environ, identity) </pre>
]]></content:encoded>
			<wfw:commentRss>http://www.deanlee.cn/programming/repoze-who-perform-login-programmatically/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>

