<?xml version="1.0" encoding="iso-8859-1"?><!-- generator="b2evolution/2.4.1" -->
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:admin="http://webns.net/mvcb/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>The Hand of FuManChu - Latest comments on Making a custom CherryPy Request class for Routes</title>
		<link>http://www.aminus.org/blogs/index.php?blog=2&#38;disp=comments</link>
		<description></description>
		<language>en-US</language>
		<docs>http://backend.userland.com/rss</docs>
		<admin:generatorAgent rdf:resource="http://b2evolution.net/?v=2.4.1"/>
		<ttl>60</ttl>
				<item>
			<title>In response to: Making a custom CherryPy Request class for Routes</title>
			<pubDate>Sun, 05 Mar 2006 14:55:14 +0000</pubDate>
			<dc:creator>TaylorBoon [Member]</dc:creator>
			<guid isPermaLink="false">c7312@http://www.aminus.org/blogs/</guid>
			<description>&lt;p&gt;And I can't believe I mispelled David's last name in my last post - my apologies to David; that should be Creemer.&lt;/p&gt;
</description>
			<content:encoded><![CDATA[<p>And I can't believe I mispelled David's last name in my last post - my apologies to David; that should be Creemer.</p>
]]></content:encoded>
			<link>http://www.aminus.org/blogs/index.php/2006/02/26/making_a_custom_cherrypy_request_class_f?blog=2#c7312</link>
		</item>
				<item>
			<title>In response to: Making a custom CherryPy Request class for Routes</title>
			<pubDate>Sun, 05 Mar 2006 14:53:14 +0000</pubDate>
			<dc:creator>TaylorBoon [Member]</dc:creator>
			<guid isPermaLink="false">c7311@http://www.aminus.org/blogs/</guid>
			<description>&lt;p&gt;This is a good improvement on David Creamer's original code. One change needs to be made to make it work past the first use. The line in the mapPathToObject method:&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
config.request_local = lambda: self&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
should be changed to:&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
config.request_local = lambda: cherrypy.request&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Otherwise, the second request (works the first time) will try to access an object with no mapper_dict attribute and an AttributeError is raised.&lt;br /&gt;
&lt;br /&gt;
Still and all, this is excellent!&lt;/p&gt;
</description>
			<content:encoded><![CDATA[<p>This is a good improvement on David Creamer's original code. One change needs to be made to make it work past the first use. The line in the mapPathToObject method:<br />
<br />
<code><br />
config.request_local = lambda: self<br />
</code><br />
<br />
should be changed to:<br />
<br />
<code><br />
config.request_local = lambda: cherrypy.request<br />
</code><br />
<br />
Otherwise, the second request (works the first time) will try to access an object with no mapper_dict attribute and an AttributeError is raised.<br />
<br />
Still and all, this is excellent!</p>
]]></content:encoded>
			<link>http://www.aminus.org/blogs/index.php/2006/02/26/making_a_custom_cherrypy_request_class_f?blog=2#c7311</link>
		</item>
			</channel>
</rss>
