<?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: Tutorial: How To Implement Tagging With TurboGears and SQLAlchemy</title>
	<atom:link href="http://www.thesamet.com/blog/2006/11/17/tutorial-how-to-implement-tagging-with-turbogears-and-sqlalchemy/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thesamet.com/blog/2006/11/17/tutorial-how-to-implement-tagging-with-turbogears-and-sqlalchemy/</link>
	<description>The Ramblings of a Freelance Software Developer</description>
	<lastBuildDate>Mon, 31 Aug 2009 19:37:30 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: sites poker en ligne</title>
		<link>http://www.thesamet.com/blog/2006/11/17/tutorial-how-to-implement-tagging-with-turbogears-and-sqlalchemy/comment-page-1/#comment-6766</link>
		<dc:creator>sites poker en ligne</dc:creator>
		<pubDate>Wed, 02 Apr 2008 13:55:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.thesamet.com/blog/2006/11/17/tutorial-how-to-implement-tagging-with-turbogears-and-sqlalchemy/#comment-6766</guid>
		<description>&lt;strong&gt;poker gratuites pas en ligne...&lt;/strong&gt;

...</description>
		<content:encoded><![CDATA[<p><strong>poker gratuites pas en ligne&#8230;</strong></p>
<p>&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve Thomas</title>
		<link>http://www.thesamet.com/blog/2006/11/17/tutorial-how-to-implement-tagging-with-turbogears-and-sqlalchemy/comment-page-1/#comment-2704</link>
		<dc:creator>Steve Thomas</dc:creator>
		<pubDate>Sat, 10 Mar 2007 03:16:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.thesamet.com/blog/2006/11/17/tutorial-how-to-implement-tagging-with-turbogears-and-sqlalchemy/#comment-2704</guid>
		<description>One comment and a question:
&lt;b&gt;Comment:&lt;/b&gt; The quotes you use in the examples seem to be forward quote and backward quote, which when I paste into TextMate on my Macintosh give a syntax error and I need to replace the quotes.

Example:
   I change: ‘google’
   to:           &#039;google&#039;

&lt;b&gt;Question:&lt;/b&gt;
When I do the: 
    $ tg-admin sql create

I get an error:
  File &quot;build/bdist.macosx-10.3-fat/egg/sqlalchemy/schema.py&quot;, line 149, in __call__
  File &quot;build/bdist.macosx-10.3-fat/egg/sqlalchemy/schema.py&quot;, line 31, in _init_items
  File &quot;build/bdist.macosx-10.3-fat/egg/sqlalchemy/schema.py&quot;, line 449, in _set_parent
sqlalchemy.exceptions.ArgumentError: The &#039;index&#039; keyword argument on Column is boolean only.  To create indexes with a specific name, append an explicit Index object to the Table&#039;s list of elements.

it is caused by the 3rd line below:
tags_table = Table(&quot;tags&quot;, metadata,
     Column(&#039;tag_id&#039;, Integer, primary_key=True),
     Column(&#039;name&#039;, Unicode(32), index=&#039;tag_idx&#039;))

I am running with  MySQL database.

I can use the tutorial without specifying the index or index name, but it would be useful.

Thanks.</description>
		<content:encoded><![CDATA[<p>One comment and a question:<br />
<b>Comment:</b> The quotes you use in the examples seem to be forward quote and backward quote, which when I paste into TextMate on my Macintosh give a syntax error and I need to replace the quotes.</p>
<p>Example:<br />
   I change: ‘google’<br />
   to:           &#8216;google&#8217;</p>
<p><b>Question:</b><br />
When I do the:<br />
    $ tg-admin sql create</p>
<p>I get an error:<br />
  File &#8220;build/bdist.macosx-10.3-fat/egg/sqlalchemy/schema.py&#8221;, line 149, in __call__<br />
  File &#8220;build/bdist.macosx-10.3-fat/egg/sqlalchemy/schema.py&#8221;, line 31, in _init_items<br />
  File &#8220;build/bdist.macosx-10.3-fat/egg/sqlalchemy/schema.py&#8221;, line 449, in _set_parent<br />
sqlalchemy.exceptions.ArgumentError: The &#8216;index&#8217; keyword argument on Column is boolean only.  To create indexes with a specific name, append an explicit Index object to the Table&#8217;s list of elements.</p>
<p>it is caused by the 3rd line below:<br />
tags_table = Table(&#8220;tags&#8221;, metadata,<br />
     Column(&#8216;tag_id&#8217;, Integer, primary_key=True),<br />
     Column(&#8216;name&#8217;, Unicode(32), index=&#8217;tag_idx&#8217;))</p>
<p>I am running with  MySQL database.</p>
<p>I can use the tutorial without specifying the index or index name, but it would be useful.</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: thesamet</title>
		<link>http://www.thesamet.com/blog/2006/11/17/tutorial-how-to-implement-tagging-with-turbogears-and-sqlalchemy/comment-page-1/#comment-1284</link>
		<dc:creator>thesamet</dc:creator>
		<pubDate>Sun, 28 Jan 2007 12:21:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.thesamet.com/blog/2006/11/17/tutorial-how-to-implement-tagging-with-turbogears-and-sqlalchemy/#comment-1284</guid>
		<description>Damjan, you can add to the Site class a property that will give you the tags as a list of strings:

&lt;pre&gt;
class Site(object):
    def __init__(self, url, title):
        self.url, self.title = url, title
    @property
    def tag_strings(self):
        return [tag.name for tag in self.tags]
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Damjan, you can add to the Site class a property that will give you the tags as a list of strings:</p>
<pre>
class Site(object):
    def __init__(self, url, title):
        self.url, self.title = url, title
    @property
    def tag_strings(self):
        return [tag.name for tag in self.tags]
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: damjan</title>
		<link>http://www.thesamet.com/blog/2006/11/17/tutorial-how-to-implement-tagging-with-turbogears-and-sqlalchemy/comment-page-1/#comment-1273</link>
		<dc:creator>damjan</dc:creator>
		<pubDate>Fri, 26 Jan 2007 23:19:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.thesamet.com/blog/2006/11/17/tutorial-how-to-implement-tagging-with-turbogears-and-sqlalchemy/#comment-1273</guid>
		<description>Can&#039;t the page.tags be a list of normal strings? Because currently it&#039;s a list of Tag instances. 

For ex. if I wish for &#039;photos&#039; in page.tags to work I had to implement this method in the Tag class:

    def __cmp__(self, other):
        if isinstance(other, Tag):
            return cmp(self.name, other.name)
        elif isinstance(other, basestring):
            return cmp(self.name, other)
        else:
            return cmp(self, other)</description>
		<content:encoded><![CDATA[<p>Can&#8217;t the page.tags be a list of normal strings? Because currently it&#8217;s a list of Tag instances. </p>
<p>For ex. if I wish for &#8216;photos&#8217; in page.tags to work I had to implement this method in the Tag class:</p>
<p>    def __cmp__(self, other):<br />
        if isinstance(other, Tag):<br />
            return cmp(self.name, other.name)<br />
        elif isinstance(other, basestring):<br />
            return cmp(self.name, other)<br />
        else:<br />
            return cmp(self, other)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: damjan</title>
		<link>http://www.thesamet.com/blog/2006/11/17/tutorial-how-to-implement-tagging-with-turbogears-and-sqlalchemy/comment-page-1/#comment-1261</link>
		<dc:creator>damjan</dc:creator>
		<pubDate>Fri, 26 Jan 2007 01:07:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.thesamet.com/blog/2006/11/17/tutorial-how-to-implement-tagging-with-turbogears-and-sqlalchemy/#comment-1261</guid>
		<description>Also, you use `session.query(Site)&#039; often but also you use `q.&#039; which is assumed to be from the first `q = session.query(Site)&#039; ... it&#039;s a bit confusing. It&#039;s possible to just use `q&#039; always right?</description>
		<content:encoded><![CDATA[<p>Also, you use `session.query(Site)&#8217; often but also you use `q.&#8217; which is assumed to be from the first `q = session.query(Site)&#8217; &#8230; it&#8217;s a bit confusing. It&#8217;s possible to just use `q&#8217; always right?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: thesamet</title>
		<link>http://www.thesamet.com/blog/2006/11/17/tutorial-how-to-implement-tagging-with-turbogears-and-sqlalchemy/comment-page-1/#comment-1230</link>
		<dc:creator>thesamet</dc:creator>
		<pubDate>Tue, 23 Jan 2007 12:10:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.thesamet.com/blog/2006/11/17/tutorial-how-to-implement-tagging-with-turbogears-and-sqlalchemy/#comment-1230</guid>
		<description>Thanks Damjan. Post updated.</description>
		<content:encoded><![CDATA[<p>Thanks Damjan. Post updated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: damjan</title>
		<link>http://www.thesamet.com/blog/2006/11/17/tutorial-how-to-implement-tagging-with-turbogears-and-sqlalchemy/comment-page-1/#comment-1229</link>
		<dc:creator>damjan</dc:creator>
		<pubDate>Tue, 23 Jan 2007 11:35:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.thesamet.com/blog/2006/11/17/tutorial-how-to-implement-tagging-with-turbogears-and-sqlalchemy/#comment-1229</guid>
		<description>You say &quot;To search for google+photo&quot; but then you do a search for ’sharing’ and ‘photos’...</description>
		<content:encoded><![CDATA[<p>You say &#8220;To search for google+photo&#8221; but then you do a search for ’sharing’ and ‘photos’&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Timur Izhbulatov</title>
		<link>http://www.thesamet.com/blog/2006/11/17/tutorial-how-to-implement-tagging-with-turbogears-and-sqlalchemy/comment-page-1/#comment-1158</link>
		<dc:creator>Timur Izhbulatov</dc:creator>
		<pubDate>Tue, 16 Jan 2007 15:04:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.thesamet.com/blog/2006/11/17/tutorial-how-to-implement-tagging-with-turbogears-and-sqlalchemy/#comment-1158</guid>
		<description>Thanks! Very helpful.</description>
		<content:encoded><![CDATA[<p>Thanks! Very helpful.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
