<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.3" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: WebOb</title>
	<link>http://blog.ianbicking.org/2007/08/18/webob/</link>
	<description></description>
	<pubDate>Tue, 07 Oct 2008 01:56:32 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.3</generator>

	<item>
		<title>By: Jim</title>
		<link>http://blog.ianbicking.org/2007/08/18/webob/#comment-1182</link>
		<dc:creator>Jim</dc:creator>
		<pubDate>Sat, 29 Sep 2007 18:25:47 +0000</pubDate>
		<guid>http://blog.ianbicking.org/2007/08/18/webob/#comment-1182</guid>
		<description>I understand why you did it, but most other Python refers to character encodings properly.  For example u"".encode(...), genshi.core.Stream.render(encoding=...), # -\*- encoding: ... -\*-, etc.  IMHO it's better to have all the Python consistent and keep the charset an unfortunate artefact of the file format rather than have the Python disagree.  Maybe just provide both?</description>
		<content:encoded><![CDATA[<p>I understand why you did it, but most other Python refers to character encodings properly.  For example u&#8221;".encode(&#8230;), genshi.core.Stream.render(encoding=&#8230;), # -&#42;- encoding: &#8230; -&#42;-, etc.  IMHO it&#8217;s better to have all the Python consistent and keep the charset an unfortunate artefact of the file format rather than have the Python disagree.  Maybe just provide both?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ian Bicking</title>
		<link>http://blog.ianbicking.org/2007/08/18/webob/#comment-1167</link>
		<dc:creator>Ian Bicking</dc:creator>
		<pubDate>Fri, 28 Sep 2007 16:11:51 +0000</pubDate>
		<guid>http://blog.ianbicking.org/2007/08/18/webob/#comment-1167</guid>
		<description>Jim: charset is meant to match `text/html; charset=utf8`, where the name is "charset".  To me this felt like the most obvious name as a result.  If it's something of a misnomer then I'm only copying the misnomer (which I didn't even realize -- I suppose there's really just one charset in Python, unicode, and it treats *everything* as an encoding, so I don't really have a distinction in my head between the two concepts).</description>
		<content:encoded><![CDATA[<p>Jim: charset is meant to match <code>text/html; charset=utf8</code>, where the name is &#8220;charset&#8221;.  To me this felt like the most obvious name as a result.  If it&#8217;s something of a misnomer then I&#8217;m only copying the misnomer (which I didn&#8217;t even realize &#8212; I suppose there&#8217;s really just one charset in Python, unicode, and it treats <em>everything</em> as an encoding, so I don&#8217;t really have a distinction in my head between the two concepts).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim</title>
		<link>http://blog.ianbicking.org/2007/08/18/webob/#comment-1162</link>
		<dc:creator>Jim</dc:creator>
		<pubDate>Fri, 28 Sep 2007 00:11:32 +0000</pubDate>
		<guid>http://blog.ianbicking.org/2007/08/18/webob/#comment-1162</guid>
		<description>The charset attribute is a bit of a misnomer.  You aren't looking at the character set, you are looking at the character encoding.  For example, UTF-8 and UTF-16 are the same charset but a different encoding.  Any chance of changing it to be more accurate?</description>
		<content:encoded><![CDATA[<p>The charset attribute is a bit of a misnomer.  You aren&#8217;t looking at the character set, you are looking at the character encoding.  For example, UTF-8 and UTF-16 are the same charset but a different encoding.  Any chance of changing it to be more accurate?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon Willison</title>
		<link>http://blog.ianbicking.org/2007/08/18/webob/#comment-242</link>
		<dc:creator>Simon Willison</dc:creator>
		<pubDate>Mon, 20 Aug 2007 13:17:52 +0000</pubDate>
		<guid>http://blog.ianbicking.org/2007/08/18/webob/#comment-242</guid>
		<description>Hey Paul - I hadn't seen WebStack. Is there any chance you could put the readme.txt and docs/ files online so they can be viewed without downloading the archive? Makes it much easier to link to things.</description>
		<content:encoded><![CDATA[<p>Hey Paul - I hadn&#8217;t seen WebStack. Is there any chance you could put the readme.txt and docs/ files online so they can be viewed without downloading the archive? Makes it much easier to link to things.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Boddie</title>
		<link>http://blog.ianbicking.org/2007/08/18/webob/#comment-240</link>
		<dc:creator>Paul Boddie</dc:creator>
		<pubDate>Mon, 20 Aug 2007 10:59:23 +0000</pubDate>
		<guid>http://blog.ianbicking.org/2007/08/18/webob/#comment-240</guid>
		<description>Simon: "I’ve been talking to both Ben Bangert and James Gardner about the possibility of making the Django and Pylons/Paste request/response objects compatible with each other in some way - either through changes to the API or just by ensuring they are similar enough that a very simple bi-directional conversion could be possible."

Of course, such things should be possible: WebStack shows that very few request/response object features are so exotic that such objects cannot be manipulated using a common abstraction.

Simon: "This would make code written against Django and code written against Paste interchangeable, which would be a massive boost for Web programming on Python in general."

This is probably possible already with WebStack in that Django is supported (unless the API is changing a lot in recent snapshots) along with WSGI (but not Paste explicitly). And along with a bunch of other frameworks, of course.</description>
		<content:encoded><![CDATA[<p>Simon: &#8220;I’ve been talking to both Ben Bangert and James Gardner about the possibility of making the Django and Pylons/Paste request/response objects compatible with each other in some way - either through changes to the API or just by ensuring they are similar enough that a very simple bi-directional conversion could be possible.&#8221;</p>

<p>Of course, such things should be possible: WebStack shows that very few request/response object features are so exotic that such objects cannot be manipulated using a common abstraction.</p>

<p>Simon: &#8220;This would make code written against Django and code written against Paste interchangeable, which would be a massive boost for Web programming on Python in general.&#8221;</p>

<p>This is probably possible already with WebStack in that Django is supported (unless the API is changing a lot in recent snapshots) along with WSGI (but not Paste explicitly). And along with a bunch of other frameworks, of course.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ian Bicking</title>
		<link>http://blog.ianbicking.org/2007/08/18/webob/#comment-233</link>
		<dc:creator>Ian Bicking</dc:creator>
		<pubDate>Mon, 20 Aug 2007 04:32:15 +0000</pubDate>
		<guid>http://blog.ianbicking.org/2007/08/18/webob/#comment-233</guid>
		<description>Multiple values are of course supported (it's a dictionary).  Because no clients I know of include the path and domain attributes, I'm not that interested; I find the Cookie objects really lousy, and I don't want to expose them when they don't carry any meaningful information for the majority of user agents.  If you are in an environment where there are unusual user agents that send more information you can parse it yourself easily enough (`c = Cookie.SimpleCookie(); c.load(req.headers.get('Cookie', ''))`).</description>
		<content:encoded><![CDATA[<p>Multiple values are of course supported (it&#8217;s a dictionary).  Because no clients I know of include the path and domain attributes, I&#8217;m not that interested; I find the Cookie objects really lousy, and I don&#8217;t want to expose them when they don&#8217;t carry any meaningful information for the majority of user agents.  If you are in an environment where there are unusual user agents that send more information you can parse it yourself easily enough (<code>c = Cookie.SimpleCookie(); c.load(req.headers.get('Cookie', ''))</code>).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim</title>
		<link>http://blog.ianbicking.org/2007/08/18/webob/#comment-232</link>
		<dc:creator>Jim</dc:creator>
		<pubDate>Mon, 20 Aug 2007 04:19:58 +0000</pubDate>
		<guid>http://blog.ianbicking.org/2007/08/18/webob/#comment-232</guid>
		<description>&#62; Do clients send structured cookie information?

Yes.  At the very least, multiple values are incredibly common (e.g. Cookie: foo=bar;baz=qux).  Clients are also supposed to include the path and domain attributes when they are specified by the server (but they often don't).</description>
		<content:encoded><![CDATA[<p>&gt; Do clients send structured cookie information?</p>

<p>Yes.  At the very least, multiple values are incredibly common (e.g. Cookie: foo=bar;baz=qux).  Clients are also supposed to include the path and domain attributes when they are specified by the server (but they often don&#8217;t).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ian Bicking</title>
		<link>http://blog.ianbicking.org/2007/08/18/webob/#comment-228</link>
		<dc:creator>Ian Bicking</dc:creator>
		<pubDate>Mon, 20 Aug 2007 02:41:20 +0000</pubDate>
		<guid>http://blog.ianbicking.org/2007/08/18/webob/#comment-228</guid>
		<description>Do clients send structured cookie information?  I haven't seen this; outgoing cookies can have comments and whatnot, and I guess theoretically incoming cookies *could* have this, but they don't.

If you are in a weird situation where you are getting more information in Cookie headers than what a normal browser sends, you can always parse the cookies yourself using `req.header['Cookie']`</description>
		<content:encoded><![CDATA[<p>Do clients send structured cookie information?  I haven&#8217;t seen this; outgoing cookies can have comments and whatnot, and I guess theoretically incoming cookies <em>could</em> have this, but they don&#8217;t.</p>

<p>If you are in a weird situation where you are getting more information in Cookie headers than what a normal browser sends, you can always parse the cookies yourself using <code>req.header['Cookie']</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim</title>
		<link>http://blog.ianbicking.org/2007/08/18/webob/#comment-227</link>
		<dc:creator>Jim</dc:creator>
		<pubDate>Mon, 20 Aug 2007 02:37:25 +0000</pubDate>
		<guid>http://blog.ianbicking.org/2007/08/18/webob/#comment-227</guid>
		<description>I've got something very similar to this, so thank you, you've enabled me to delete code :).

One thing I would like to see though, is proper decoding of incoming cookies.  They aren't necessarily plain strings, they can have various properties attached to them, like expiry dates and comments.  The Cookie module in the stdlib can handle this.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve got something very similar to this, so thank you, you&#8217;ve enabled me to delete code :).</p>

<p>One thing I would like to see though, is proper decoding of incoming cookies.  They aren&#8217;t necessarily plain strings, they can have various properties attached to them, like expiry dates and comments.  The Cookie module in the stdlib can handle this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon Willison</title>
		<link>http://blog.ianbicking.org/2007/08/18/webob/#comment-224</link>
		<dc:creator>Simon Willison</dc:creator>
		<pubDate>Mon, 20 Aug 2007 00:56:38 +0000</pubDate>
		<guid>http://blog.ianbicking.org/2007/08/18/webob/#comment-224</guid>
		<description>I've been talking to both Ben Bangert and James Gardner about the possibility of making the Django and Pylons/Paste request/response objects compatible with each other in some way - either through changes to the API or just by ensuring they are similar enough that a very simple bi-directional conversion could be possible. This would make code written against Django and code written against Paste interchangeable, which would be a massive boost for Web programming on Python in general.

Would you be interested in helping out with this? I should probably start a mailing list dedicated to the effort.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve been talking to both Ben Bangert and James Gardner about the possibility of making the Django and Pylons/Paste request/response objects compatible with each other in some way - either through changes to the API or just by ensuring they are similar enough that a very simple bi-directional conversion could be possible. This would make code written against Django and code written against Paste interchangeable, which would be a massive boost for Web programming on Python in general.</p>

<p>Would you be interested in helping out with this? I should probably start a mailing list dedicated to the effort.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
