<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Reading cookies from most Firefox versions&#8230;</title>
	<atom:link href="http://blog.mithis.net/archives/python/94-reading-cookies-firefox/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.mithis.net/archives/python/94-reading-cookies-firefox</link>
	<description></description>
	<lastBuildDate>Fri, 13 Jan 2012 18:21:23 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: mithro</title>
		<link>http://blog.mithis.net/archives/python/94-reading-cookies-firefox/comment-page-1#comment-7245</link>
		<dc:creator>mithro</dc:creator>
		<pubDate>Mon, 23 Aug 2010 05:49:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mithis.net/?p=94#comment-7245</guid>
		<description>I&#039;ve updated the code once more, it might work now. As I said I can&#039;t actually test this code as I don&#039;t have a windows computer.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve updated the code once more, it might work now. As I said I can&#8217;t actually test this code as I don&#8217;t have a windows computer.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Will</title>
		<link>http://blog.mithis.net/archives/python/94-reading-cookies-firefox/comment-page-1#comment-7244</link>
		<dc:creator>Will</dc:creator>
		<pubDate>Sun, 22 Aug 2010 19:17:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mithis.net/?p=94#comment-7244</guid>
		<description>sorry about the previous comment, I went the the site listed in the script:

http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/473846

I see that it uses on line 68:

        ret = _winreg.QueryValueEx(key, name)
    except WindowsError:
        return None
    else:
        key.Close()
        if ret[1] == _winreg.REG_EXPAND_SZ:
            return expandvars(ret[0])
        else:
            return ret[0]

which your code closely mirrors :

        result = _winreg.QueryValueEx(key, &#039;AppData&#039;)
    except WindowsError:
        return None
    else:
        key.Close()
        if ret[1] == _winreg.REG_EXPAND_SZ:
            result = win32api.ExpandEnvironmentStrings(ret[0])
        else:
            result = ret[0]


It&#039;s just that you put result = as opposed to ret = on that first line and then used ret further on.</description>
		<content:encoded><![CDATA[<p>sorry about the previous comment, I went the the site listed in the script:</p>
<p><a href="http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/473846" rel="nofollow">http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/473846</a></p>
<p>I see that it uses on line 68:</p>
<p>        ret = _winreg.QueryValueEx(key, name)<br />
    except WindowsError:<br />
        return None<br />
    else:<br />
        key.Close()<br />
        if ret[1] == _winreg.REG_EXPAND_SZ:<br />
            return expandvars(ret[0])<br />
        else:<br />
            return ret[0]</p>
<p>which your code closely mirrors :</p>
<p>        result = _winreg.QueryValueEx(key, &#8216;AppData&#8217;)<br />
    except WindowsError:<br />
        return None<br />
    else:<br />
        key.Close()<br />
        if ret[1] == _winreg.REG_EXPAND_SZ:<br />
            result = win32api.ExpandEnvironmentStrings(ret[0])<br />
        else:<br />
            result = ret[0]</p>
<p>It&#8217;s just that you put result = as opposed to ret = on that first line and then used ret further on.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Will</title>
		<link>http://blog.mithis.net/archives/python/94-reading-cookies-firefox/comment-page-1#comment-7243</link>
		<dc:creator>Will</dc:creator>
		<pubDate>Sun, 22 Aug 2010 19:09:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mithis.net/?p=94#comment-7243</guid>
		<description>I have the same error as Chris

NameError: global name &#039;ret&#039; is not defined

I am currently using the copy of firefox_finder.py and firefox3_repack.py from your repo.</description>
		<content:encoded><![CDATA[<p>I have the same error as Chris</p>
<p>NameError: global name &#8216;ret&#8217; is not defined</p>
<p>I am currently using the copy of firefox_finder.py and firefox3_repack.py from your repo.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: thegreatgrateful</title>
		<link>http://blog.mithis.net/archives/python/94-reading-cookies-firefox/comment-page-1#comment-7241</link>
		<dc:creator>thegreatgrateful</dc:creator>
		<pubDate>Tue, 08 Jun 2010 23:20:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mithis.net/?p=94#comment-7241</guid>
		<description>thanks man!</description>
		<content:encoded><![CDATA[<p>thanks man!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mithro</title>
		<link>http://blog.mithis.net/archives/python/94-reading-cookies-firefox/comment-page-1#comment-7210</link>
		<dc:creator>mithro</dc:creator>
		<pubDate>Tue, 19 May 2009 04:14:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mithis.net/?p=94#comment-7210</guid>
		<description>I updated the code in the repository. I don&#039;t have a Windows computer to actually test against however.</description>
		<content:encoded><![CDATA[<p>I updated the code in the repository. I don&#8217;t have a Windows computer to actually test against however.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://blog.mithis.net/archives/python/94-reading-cookies-firefox/comment-page-1#comment-7209</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Mon, 18 May 2009 17:35:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mithis.net/?p=94#comment-7209</guid>
		<description>The windows code doesn&#039;t appear to work at all.

NameError: global name &#039;ret&#039; is not defined, line 76</description>
		<content:encoded><![CDATA[<p>The windows code doesn&#8217;t appear to work at all.</p>
<p>NameError: global name &#8216;ret&#8217; is not defined, line 76</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mithro</title>
		<link>http://blog.mithis.net/archives/python/94-reading-cookies-firefox/comment-page-1#comment-7207</link>
		<dc:creator>mithro</dc:creator>
		<pubDate>Fri, 15 May 2009 01:38:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mithis.net/?p=94#comment-7207</guid>
		<description>You can find the code in an easier to edit format at &lt;a href=&quot;http://blog.mithis.net/cgi-bin/gitweb.cgi?p=mub.git;a=tree;f=python/firefox;hb=master&quot; rel=&quot;nofollow&quot;&gt;Mithro&#039;s Useful Bit repository&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>You can find the code in an easier to edit format at <a href="http://blog.mithis.net/cgi-bin/gitweb.cgi?p=mub.git;a=tree;f=python/firefox;hb=master" rel="nofollow">Mithro&#8217;s Useful Bit repository</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paolo Bitta</title>
		<link>http://blog.mithis.net/archives/python/94-reading-cookies-firefox/comment-page-1#comment-7206</link>
		<dc:creator>Paolo Bitta</dc:creator>
		<pubDate>Thu, 14 May 2009 12:52:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mithis.net/?p=94#comment-7206</guid>
		<description>That&#039;s a good job, thank you!</description>
		<content:encoded><![CDATA[<p>That&#8217;s a good job, thank you!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

