<?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: Remove Textile from a Wordpress blog</title>
	<atom:link href="http://blog.firetree.net/2008/10/10/remove-textile-from-a-wordpress-blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.firetree.net/2008/10/10/remove-textile-from-a-wordpress-blog/</link>
	<description>Sharing useful things with the world.</description>
	<lastBuildDate>Thu, 29 Jul 2010 06:18:23 +0100</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: chris</title>
		<link>http://blog.firetree.net/2008/10/10/remove-textile-from-a-wordpress-blog/comment-page-1/#comment-25019</link>
		<dc:creator>chris</dc:creator>
		<pubDate>Tue, 03 Feb 2009 17:01:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.firetree.net/?p=93#comment-25019</guid>
		<description>&lt;p&gt;Lisa - the issue is that you are running a version of Python prior to 2.5 when attribute-access to the results of &quot;urlparse&quot; were introduced. See: http://docs.python.org/library/urlparse.html#urlparse.urlparse&lt;/p&gt;

&lt;p&gt;You can fix this with a small patch to textile.py:&lt;/p&gt;

&lt;p&gt;Line 784:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;def relURL(self, url):
    o = urlparse(url)
    # XXX PATCH
    # o[0,1,2,3,4,5] = [scheme,netloc,path,params,query,fragment]
    # attribute access only introduced in python 2.5+
    if (not o[0] or o[0] == &#039;http&#039;) and not o[1] and re.search(r&#039;^\w&#039;, o[2]):
        url = self.hu + url
    if self.restricted and o[0] and o[0] not in self.url_schemes:
        return &#039;#&#039;
    return url
&lt;/code&gt;&lt;/pre&gt;
</description>
		<content:encoded><![CDATA[<p>Lisa &#8211; the issue is that you are running a version of Python prior to 2.5 when attribute-access to the results of &#8220;urlparse&#8221; were introduced. See: <a href="http://docs.python.org/library/urlparse.html#urlparse.urlparse" rel="nofollow">http://docs.python.org/library/urlparse.html#urlparse.urlparse</a></p>

<p>You can fix this with a small patch to textile.py:</p>

<p>Line 784:</p>

<pre><code>def relURL(self, url):
    o = urlparse(url)
    # XXX PATCH
    # o[0,1,2,3,4,5] = [scheme,netloc,path,params,query,fragment]
    # attribute access only introduced in python 2.5+
    if (not o[0] or o[0] == 'http') and not o[1] and re.search(r'^\w', o[2]):
        url = self.hu + url
    if self.restricted and o[0] and o[0] not in self.url_schemes:
        return '#'
    return url
</code></pre>]]></content:encoded>
	</item>
	<item>
		<title>By: abiye</title>
		<link>http://blog.firetree.net/2008/10/10/remove-textile-from-a-wordpress-blog/comment-page-1/#comment-24949</link>
		<dc:creator>abiye</dc:creator>
		<pubDate>Sat, 13 Dec 2008 21:27:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.firetree.net/?p=93#comment-24949</guid>
		<description>&lt;p&gt;i cant understand what is this excatly. can some one explain?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>i cant understand what is this excatly. can some one explain?</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Lisa</title>
		<link>http://blog.firetree.net/2008/10/10/remove-textile-from-a-wordpress-blog/comment-page-1/#comment-24942</link>
		<dc:creator>Lisa</dc:creator>
		<pubDate>Thu, 04 Dec 2008 23:24:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.firetree.net/?p=93#comment-24942</guid>
		<description>&lt;p&gt;Hi! This thing is a potential godsend. After much putzing around trying to get the textile and uuid extensions installed fort python correctly, and then modifying your code to allow for the path to mysql.sock to be in the connect string it&#039;s working! Sort of. I&#039;m getting through a few and then it cacks. I wonder if you could help me troubleshoot? If you have time, here&#039;s the error I&#039;m getting:&lt;/p&gt;

&lt;p&gt;user@domain:~/domains/domain.com/html$ python untextile.py
Converting post: 1
Converting post: 2
Converting post: 104
Traceback (most recent call last):
  File &quot;untextile.py&quot;, line 84, in ?
    untextile(db,wpconfig.table_prefix)
  File &quot;untextile.py&quot;, line 29, in untextile
    text = textile.textile(text)
  File &quot;/home/mt/users/.home/lib/python/textile.py&quot;, line 1052, in textile
    return Textile().textile(text, **args)
  File &quot;/home/mt/users/.home/lib/python/textile.py&quot;, line 299, in textile
    text = self.block(text)
  File &quot;/home/mt/users/.home/lib/python/textile.py&quot;, line 577, in block
    o1, o2, content, c2, c1 = self.fBlock(tag, atts, ext, cite, line)
  File &quot;/home/mt/users/.home/lib/python/textile.py&quot;, line 667, in fBlock
    content = self.graf(content)
  File &quot;/home/mt/users/.home/lib/python/textile.py&quot;, line 833, in graf
    text = self.links(text)
  File &quot;/home/mt/users/.home/lib/python/textile.py&quot;, line 871, in links
    text = re.compile(pattern, re.X).sub(self.fLink, text)
  File &quot;/home/mt/users/.home/lib/python/textile.py&quot;, line 894, in fLink
    url = self.relURL(url)
  File &quot;/home/mt/users/.home/lib/python/textile.py&quot;, line 786, in relURL
    if (not o.scheme or o.scheme == &#039;http&#039;) and not o.netloc and re.search(r&#039;^&#92;w&#039;, o.path):
AttributeError: &#039;tuple&#039; object has no attribute &#039;scheme&#039;&lt;/p&gt;

&lt;p&gt;Any idea what could be going wrong? I&#039;d really appreciate your help. Thanks again for this! Great stuff.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi! This thing is a potential godsend. After much putzing around trying to get the textile and uuid extensions installed fort python correctly, and then modifying your code to allow for the path to mysql.sock to be in the connect string it&#8217;s working! Sort of. I&#8217;m getting through a few and then it cacks. I wonder if you could help me troubleshoot? If you have time, here&#8217;s the error I&#8217;m getting:</p>

<p>user@domain:~/domains/domain.com/html$ python untextile.py
Converting post: 1
Converting post: 2
Converting post: 104
Traceback (most recent call last):
  File &#8220;untextile.py&#8221;, line 84, in ?
    untextile(db,wpconfig.table_prefix)
  File &#8220;untextile.py&#8221;, line 29, in untextile
    text = textile.textile(text)
  File &#8220;/home/mt/users/.home/lib/python/textile.py&#8221;, line 1052, in textile
    return Textile().textile(text, **args)
  File &#8220;/home/mt/users/.home/lib/python/textile.py&#8221;, line 299, in textile
    text = self.block(text)
  File &#8220;/home/mt/users/.home/lib/python/textile.py&#8221;, line 577, in block
    o1, o2, content, c2, c1 = self.fBlock(tag, atts, ext, cite, line)
  File &#8220;/home/mt/users/.home/lib/python/textile.py&#8221;, line 667, in fBlock
    content = self.graf(content)
  File &#8220;/home/mt/users/.home/lib/python/textile.py&#8221;, line 833, in graf
    text = self.links(text)
  File &#8220;/home/mt/users/.home/lib/python/textile.py&#8221;, line 871, in links
    text = re.compile(pattern, re.X).sub(self.fLink, text)
  File &#8220;/home/mt/users/.home/lib/python/textile.py&#8221;, line 894, in fLink
    url = self.relURL(url)
  File &#8220;/home/mt/users/.home/lib/python/textile.py&#8221;, line 786, in relURL
    if (not o.scheme or o.scheme == &#8216;http&#8217;) and not o.netloc and re.search(r&#8217;^&#92;w&#8217;, o.path):
AttributeError: &#8216;tuple&#8217; object has no attribute &#8217;scheme&#8217;</p>

<p>Any idea what could be going wrong? I&#8217;d really appreciate your help. Thanks again for this! Great stuff.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Sumit</title>
		<link>http://blog.firetree.net/2008/10/10/remove-textile-from-a-wordpress-blog/comment-page-1/#comment-24903</link>
		<dc:creator>Sumit</dc:creator>
		<pubDate>Wed, 05 Nov 2008 15:52:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.firetree.net/?p=93#comment-24903</guid>
		<description>&lt;p&gt;I have several old Rails sites I&#039;ve been moving into Wordpress. I leave the Textile plug-in &amp; WP-MarkItUp Toolbar on for those sites and turn it off for any new stuff, just because people who have used it before are use to it.&lt;/p&gt;

&lt;p&gt;The Visual Editor in WP is surprisingly clean, well as clean as it can be. If you cut and past from Word into it, you&#039;re still gonna get a ton of garbage. &lt;/p&gt;

&lt;p&gt;I still use Textile personally for my own stuff because I do like the markup and I also like the way it auto handles footnotes with the[1] and fn1. symbols. &lt;/p&gt;

&lt;p&gt;This is a cool script though. I&#039;ll have to file this away in case I ever want to untextile a site.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I have several old Rails sites I&#8217;ve been moving into Wordpress. I leave the Textile plug-in &amp; WP-MarkItUp Toolbar on for those sites and turn it off for any new stuff, just because people who have used it before are use to it.</p>

<p>The Visual Editor in WP is surprisingly clean, well as clean as it can be. If you cut and past from Word into it, you&#8217;re still gonna get a ton of garbage. </p>

<p>I still use Textile personally for my own stuff because I do like the markup and I also like the way it auto handles footnotes with the[1] and fn1. symbols. </p>

<p>This is a cool script though. I&#8217;ll have to file this away in case I ever want to untextile a site.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Christopher Ross</title>
		<link>http://blog.firetree.net/2008/10/10/remove-textile-from-a-wordpress-blog/comment-page-1/#comment-24827</link>
		<dc:creator>Christopher Ross</dc:creator>
		<pubDate>Fri, 10 Oct 2008 13:49:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.firetree.net/?p=93#comment-24827</guid>
		<description>&lt;p&gt;It&#039;s great to see somebody else using Python with WordPress!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>It&#8217;s great to see somebody else using Python with WordPress!</p>]]></content:encoded>
	</item>
</channel>
</rss>
