<?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 WSGI gateway for ASP (Microsoft IIS)</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: WSGI gateway for ASP (Microsoft IIS)</title>
			<pubDate>Fri, 03 Mar 2006 05:20:53 +0000</pubDate>
			<dc:creator>fumanchu [Member]</dc:creator>
			<guid isPermaLink="false">c7290@http://www.aminus.org/blogs/</guid>
			<description>&lt;p&gt;Thanks, Jason! I've incorporated your change at the permanent home of asp_gateway: http://projects.amor.org/misc/browser/asp_gateway.py&lt;/p&gt;
</description>
			<content:encoded><![CDATA[<p>Thanks, Jason! I've incorporated your change at the permanent home of asp_gateway: http://projects.amor.org/misc/browser/asp_gateway.py</p>
]]></content:encoded>
			<link>http://www.aminus.org/blogs/index.php/2005/05/26/wsgi_gateway_for_asp_microsoft_iis?blog=2#c7290</link>
		</item>
				<item>
			<title>In response to: WSGI gateway for ASP (Microsoft IIS)</title>
			<pubDate>Fri, 03 Mar 2006 02:23:06 +0000</pubDate>
			<dc:creator>Jason R. Coombs [Visitor]</dc:creator>
			<guid isPermaLink="false">c7289@http://www.aminus.org/blogs/</guid>
			<description>&lt;p&gt;I'm revisiting using this for running cherrypy behind IIS.  It's mostly working at this point, after running into a swath of small problems.  The last problem I encountered is that in CherryPy, it expects the result of a cgiFieldStorage read to return a string (or at least an object with a .strip method).  The object returned at line 43, however, returns a buffer object which does not meet this interface.&lt;br /&gt;
&lt;br /&gt;
This causes an error 'buffer object has no attribute strip' in cgi.py when a POST request is sent through CherryPy.&lt;br /&gt;
&lt;br /&gt;
I corrected the problem with a quick fix by explicitly transforming the result to a string:&lt;br /&gt;
&lt;br /&gt;
   def read(self, size=-1):&lt;br /&gt;
        if size &amp;lt; 0:&lt;br /&gt;
            size = self.remainder&lt;br /&gt;
        content, size = self.stream(size)&lt;br /&gt;
        self.remainder -= size&lt;br /&gt;
        return str( content )&lt;br /&gt;&lt;/p&gt;
</description>
			<content:encoded><![CDATA[<p>I'm revisiting using this for running cherrypy behind IIS.  It's mostly working at this point, after running into a swath of small problems.  The last problem I encountered is that in CherryPy, it expects the result of a cgiFieldStorage read to return a string (or at least an object with a .strip method).  The object returned at line 43, however, returns a buffer object which does not meet this interface.<br />
<br />
This causes an error 'buffer object has no attribute strip' in cgi.py when a POST request is sent through CherryPy.<br />
<br />
I corrected the problem with a quick fix by explicitly transforming the result to a string:<br />
<br />
   def read(self, size=-1):<br />
        if size &lt; 0:<br />
            size = self.remainder<br />
        content, size = self.stream(size)<br />
        self.remainder -= size<br />
        return str( content )<br /></p>
]]></content:encoded>
			<link>http://www.aminus.org/blogs/index.php/2005/05/26/wsgi_gateway_for_asp_microsoft_iis?blog=2#c7289</link>
		</item>
				<item>
			<title>In response to: WSGI gateway for ASP (Microsoft IIS)</title>
			<pubDate>Sat, 02 Jul 2005 17:11:08 +0000</pubDate>
			<dc:creator>fumanchu [Member]</dc:creator>
			<guid isPermaLink="false">c2880@http://www.aminus.org/blogs/</guid>
			<description>&lt;p&gt;Sean,&lt;br /&gt;
&lt;br /&gt;
global.asa finds &quot;mcontrol&quot; in the same manner that any other Python script finds a module. In my particular case, I have a package named &quot;mcontrol&quot; in my site-packages directory; &quot;mcontrol&quot; is the name of my cherrypy application, and it contains a module named &quot;chpy&quot; which initializes the CherryPy config and server.&lt;/p&gt;
</description>
			<content:encoded><![CDATA[<p>Sean,<br />
<br />
global.asa finds "mcontrol" in the same manner that any other Python script finds a module. In my particular case, I have a package named "mcontrol" in my site-packages directory; "mcontrol" is the name of my cherrypy application, and it contains a module named "chpy" which initializes the CherryPy config and server.</p>
]]></content:encoded>
			<link>http://www.aminus.org/blogs/index.php/2005/05/26/wsgi_gateway_for_asp_microsoft_iis?blog=2#c2880</link>
		</item>
				<item>
			<title>In response to: WSGI gateway for ASP (Microsoft IIS)</title>
			<pubDate>Thu, 30 Jun 2005 19:30:06 +0000</pubDate>
			<dc:creator>Sean Fulmer [Visitor]</dc:creator>
			<guid isPermaLink="false">c2866@http://www.aminus.org/blogs/</guid>
			<description>&lt;p&gt;How does global.asa find mcontrol? Where does the cherrypy app live?&lt;br /&gt;&lt;/p&gt;
</description>
			<content:encoded><![CDATA[<p>How does global.asa find mcontrol? Where does the cherrypy app live?<br /></p>
]]></content:encoded>
			<link>http://www.aminus.org/blogs/index.php/2005/05/26/wsgi_gateway_for_asp_microsoft_iis?blog=2#c2866</link>
		</item>
				<item>
			<title>In response to: WSGI gateway for ASP (Microsoft IIS)</title>
			<pubDate>Sun, 29 May 2005 11:15:28 +0000</pubDate>
			<dc:creator>Mark Rees [Visitor]</dc:creator>
			<guid isPermaLink="false">c1220@http://www.aminus.org/blogs/</guid>
			<description>&lt;p&gt;Yes, isapi_wsgi doesn't have thread support yet. Have been working on the next release to use IO Completion ports but have a few problems to sort out. Also a lack of spare time is slowing down development :-)&lt;/p&gt;
</description>
			<content:encoded><![CDATA[<p>Yes, isapi_wsgi doesn't have thread support yet. Have been working on the next release to use IO Completion ports but have a few problems to sort out. Also a lack of spare time is slowing down development :-)</p>
]]></content:encoded>
			<link>http://www.aminus.org/blogs/index.php/2005/05/26/wsgi_gateway_for_asp_microsoft_iis?blog=2#c1220</link>
		</item>
				<item>
			<title>In response to: WSGI gateway for ASP (Microsoft IIS)</title>
			<pubDate>Sat, 28 May 2005 14:28:20 +0000</pubDate>
			<dc:creator>fumanchu [Member]</dc:creator>
			<guid isPermaLink="false">c1218@http://www.aminus.org/blogs/</guid>
			<description>&lt;p&gt;Hi, Andy! I've been reading your blog for quite a while.&lt;br /&gt;
&lt;br /&gt;
As I &lt;a href='http://www.amorhq.net/blogs/index.php/fumanchu/2005/05/09/restful_re_treat#c805'&gt;mentioned earlier&lt;/a&gt;, I don't think Mark's ISAPI is ready for my needs yet (no threads yet). The non-WSGI ISAPI that Phil Frantz put into pywin32 (build 203+) seems a bit further along right now--could be helpful to finish Mark's.&lt;br /&gt;
&lt;br /&gt;
Of course, the ASP wrapper (above) doesn't really have anything to do with any ISAPI implementation, except that they compete in roughly the same space.&lt;/p&gt;
</description>
			<content:encoded><![CDATA[<p>Hi, Andy! I've been reading your blog for quite a while.<br />
<br />
As I <a href='http://www.amorhq.net/blogs/index.php/fumanchu/2005/05/09/restful_re_treat#c805'>mentioned earlier</a>, I don't think Mark's ISAPI is ready for my needs yet (no threads yet). The non-WSGI ISAPI that Phil Frantz put into pywin32 (build 203+) seems a bit further along right now--could be helpful to finish Mark's.<br />
<br />
Of course, the ASP wrapper (above) doesn't really have anything to do with any ISAPI implementation, except that they compete in roughly the same space.</p>
]]></content:encoded>
			<link>http://www.aminus.org/blogs/index.php/2005/05/26/wsgi_gateway_for_asp_microsoft_iis?blog=2#c1218</link>
		</item>
				<item>
			<title>In response to: WSGI gateway for ASP (Microsoft IIS)</title>
			<pubDate>Sat, 28 May 2005 05:13:43 +0000</pubDate>
			<dc:creator>Andy Todd [Visitor]</dc:creator>
			<guid isPermaLink="false">c1217@http://www.aminus.org/blogs/</guid>
			<description>&lt;p&gt;I'm not up on the technicalities, but does this module work with Mark Ree's ISAPI-WSGI toolkit?&lt;br /&gt;
&lt;br /&gt;
http://isapi-wsgi.python-hosting.com/&lt;/p&gt;
</description>
			<content:encoded><![CDATA[<p>I'm not up on the technicalities, but does this module work with Mark Ree's ISAPI-WSGI toolkit?<br />
<br />
http://isapi-wsgi.python-hosting.com/</p>
]]></content:encoded>
			<link>http://www.aminus.org/blogs/index.php/2005/05/26/wsgi_gateway_for_asp_microsoft_iis?blog=2#c1217</link>
		</item>
			</channel>
</rss>
