<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.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: Pebble Migration</title>
	<link>http://blog.erikisaksson.com/2008/03/08/pebble-migration/</link>
	<description>Personal weblog of Erik Isaksson: IT, business, life, misc. thoughts</description>
	<pubDate>Sat, 22 Nov 2008 04:15:35 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
		<item>
		<title>By: janders</title>
		<link>http://blog.erikisaksson.com/2008/03/08/pebble-migration/#comment-57</link>
		<dc:creator>janders</dc:creator>
		<pubDate>Mon, 07 Jul 2008 00:12:51 +0000</pubDate>
		<guid>http://blog.erikisaksson.com/2008/03/08/pebble-migration/#comment-57</guid>
		<description>The last post got munged.  Guess you do not allow html/xml in a post.  I'll repost just the fixes using formated html -- i.e., &#60; and &#62;


Fix for the missing semicolon:


comment_approved="&#60;xsl:if test="state='approved'"&#62;1&#60;/xsl:if&#62;&#60;xsl:if test="state!='approved'"&#62;0&#60;/xsl:if&#62;";


Fix which adds comment_count to a post (place at the end of the template after comments):


        &#60;xsl:if test="count(comment)&#62;0"&#62;
UPDATE wp_posts SET comment_count=&#60;xsl:value-of select="count(comment)"/&#62; WHERE post_name="&#60;xsl:value-of select="$postname" /&#62;";
        &#60;/xsl:if&#62;


I hope that fixed the prior comment.
- JA</description>
		<content:encoded><![CDATA[<p>The last post got munged.  Guess you do not allow html/xml in a post.  I&#8217;ll repost just the fixes using formated html &#8212; i.e., &lt; and &gt;</p>
<p>Fix for the missing semicolon:</p>
<p>comment_approved=&#8221;&lt;xsl:if test=&#8221;state=&#8217;approved&#8217;&#8221;&gt;1&lt;/xsl:if&gt;&lt;xsl:if test=&#8221;state!=&#8217;approved&#8217;&#8221;&gt;0&lt;/xsl:if&gt;&#8221;;</p>
<p>Fix which adds comment_count to a post (place at the end of the template after comments):</p>
<p>        &lt;xsl:if test=&#8221;count(comment)&gt;0&#8243;&gt;<br />
UPDATE wp_posts SET comment_count=&lt;xsl:value-of select=&#8221;count(comment)&#8221;/&gt; WHERE post_name=&#8221;&lt;xsl:value-of select=&#8221;$postname&#8221; /&gt;&#8221;;<br />
        &lt;/xsl:if&gt;</p>
<p>I hope that fixed the prior comment.<br />
- JA</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: janders</title>
		<link>http://blog.erikisaksson.com/2008/03/08/pebble-migration/#comment-56</link>
		<dc:creator>janders</dc:creator>
		<pubDate>Mon, 07 Jul 2008 00:02:48 +0000</pubDate>
		<guid>http://blog.erikisaksson.com/2008/03/08/pebble-migration/#comment-56</guid>
		<description>Thanks, that did it. I was able to install python-4Suite-XML using yum: 

  yum install python-4Suite-XML.

BTW, I did find a bug in pebble-wordpress.xsl.  There was a missing semicolon at the end of the comments section and there was no update to the number of comments per post.  

Here is the fix for the missing semicolon (i.e., see semicolon at end of comment_approved):

comment_approved="10";

And here is a fix which adds comment_count to a post (place at the end of the template after comments):

        0"&#62;
UPDATE wp_posts SET comment_count= WHERE post_name="";
        

Also, since I installed wordpress following their "Famous five minute install", I kept the admin account and then added my account.  The meant that I had a user ID=2, which I set in pebble-wordpress.xsl as post_author=2.

Finally, as a side note to new users of Wordpress, you will have to copy the contents of the pebble ./image directory over to the wordpress directory where it is installed.  For example, if you set img_url in pebble-wordpress.py to be:

  img_url = 'http://www.myblog.com/blog/images/'

then under the wordpress directory on your web server you'll need to create the dirs blog/images and copy all images to this location.

- JA</description>
		<content:encoded><![CDATA[<p>Thanks, that did it. I was able to install python-4Suite-XML using yum: </p>
<p>  yum install python-4Suite-XML.</p>
<p>BTW, I did find a bug in pebble-wordpress.xsl.  There was a missing semicolon at the end of the comments section and there was no update to the number of comments per post.  </p>
<p>Here is the fix for the missing semicolon (i.e., see semicolon at end of comment_approved):</p>
<p>comment_approved=&#8221;10&#8243;;</p>
<p>And here is a fix which adds comment_count to a post (place at the end of the template after comments):</p>
<p>        0&#8243;&gt;<br />
UPDATE wp_posts SET comment_count= WHERE post_name=&#8221;";</p>
<p>Also, since I installed wordpress following their &#8220;Famous five minute install&#8221;, I kept the admin account and then added my account.  The meant that I had a user ID=2, which I set in pebble-wordpress.xsl as post_author=2.</p>
<p>Finally, as a side note to new users of Wordpress, you will have to copy the contents of the pebble ./image directory over to the wordpress directory where it is installed.  For example, if you set img_url in pebble-wordpress.py to be:</p>
<p>  img_url = &#8216;http://www.myblog.com/blog/images/&#8217;</p>
<p>then under the wordpress directory on your web server you&#8217;ll need to create the dirs blog/images and copy all images to this location.</p>
<p>- JA</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erik</title>
		<link>http://blog.erikisaksson.com/2008/03/08/pebble-migration/#comment-39</link>
		<dc:creator>Erik</dc:creator>
		<pubDate>Tue, 13 May 2008 06:33:49 +0000</pubDate>
		<guid>http://blog.erikisaksson.com/2008/03/08/pebble-migration/#comment-39</guid>
		<description>I'm using the latest stable release of 4Suite. Perhaps you could try that version instead. I believe the correct package for Fedora is python-4Suite-XML. Hope this helps.</description>
		<content:encoded><![CDATA[<p>I&#8217;m using the latest stable release of 4Suite. Perhaps you could try that version instead. I believe the correct package for Fedora is python-4Suite-XML. Hope this helps.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
