<?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"
	>
<channel>
	<title>Comments on: Postgres FTI with SQLObject issue resolved</title>
	<atom:link href="http://www.markshuttleworth.com/archives/9/feed" rel="self" type="application/rss+xml" />
	<link>http://www.markshuttleworth.com/archives/9</link>
	<description>Planetary perspectives</description>
	<pubDate>Sat, 05 Jul 2008 00:14:08 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Dave</title>
		<link>http://www.markshuttleworth.com/archives/9#comment-205975</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Thu, 22 Nov 2007 11:49:38 +0000</pubDate>
		<guid isPermaLink="false">http://mscom.rabbithole.co.za/archives/9#comment-205975</guid>
		<description>Disregard my last comment. I've patched it myself - but thanks for the idea.

Here's the patch if you want to post it to aid anyone else in this situation...

diff -u ./dbconnection.py virtual/lib/python2.4/site-packages/SQLObject-0.7.9-py2.4.egg/sqlobject/dbconnection.py
--- ./dbconnection.py   2007-11-21 17:22:00.000000000 +0000
+++ virtual/lib/python2.4/site-packages/SQLObject-0.7.9-py2.4.egg/sqlobject/dbconnection.py     2007-11-21 17:11:02.000000000 +0000
@@ -404,6 +404,9 @@
         else:
             columns = ", ".join(["%s.%s" % (cls.sqlmeta.table, col.dbName)
                                  for col in cls.sqlmeta.columnList])
+            also = ops.get('selectAlso')
+            if also:
+                columns += ", " + also
             if columns:
                 q += "%s.%s, %s FROM %s" % \
                      (cls.sqlmeta.table, cls.sqlmeta.idName, columns,
diff -u ./main.py virtual/lib/python2.4/site-packages/SQLObject-0.7.9-py2.4.egg/sqlobject/main.py
--- ./main.py   2007-11-21 17:22:00.000000000 +0000
+++ virtual/lib/python2.4/site-packages/SQLObject-0.7.9-py2.4.egg/sqlobject/main.py     2007-11-21 17:07:01.000000000 +0000
@@ -1289,7 +1289,7 @@
                orderBy=NoDefault, limit=None,
                lazyColumns=False, reversed=False,
                distinct=False, connection=None,
-               join=None):
+               join=None, selectAlso=None):
         return cls.SelectResultsClass(cls, clause,
                              clauseTables=clauseTables,
                              orderBy=orderBy,
@@ -1298,7 +1298,8 @@
                              reversed=reversed,
                              distinct=distinct,
                              connection=connection,
-                             join=join)
+                             join=join,
+                             selectAlso=selectAlso)
     select = classmethod(select)

     def selectBy(cls, connection=None, **kw):</description>
		<content:encoded><![CDATA[<p>Disregard my last comment. I&#8217;ve patched it myself - but thanks for the idea.</p>
<p>Here&#8217;s the patch if you want to post it to aid anyone else in this situation&#8230;</p>
<p>diff -u ./dbconnection.py virtual/lib/python2.4/site-packages/SQLObject-0.7.9-py2.4.egg/sqlobject/dbconnection.py<br />
&#8212; ./dbconnection.py   2007-11-21 17:22:00.000000000 +0000<br />
+++ virtual/lib/python2.4/site-packages/SQLObject-0.7.9-py2.4.egg/sqlobject/dbconnection.py     2007-11-21 17:11:02.000000000 +0000<br />
@@ -404,6 +404,9 @@<br />
         else:<br />
             columns = &#8220;, &#8220;.join(["%s.%s" % (cls.sqlmeta.table, col.dbName)<br />
                                  for col in cls.sqlmeta.columnList])<br />
+            also = ops.get(&#8217;selectAlso&#8217;)<br />
+            if also:<br />
+                columns += &#8220;, &#8221; + also<br />
             if columns:<br />
                 q += &#8220;%s.%s, %s FROM %s&#8221; % \<br />
                      (cls.sqlmeta.table, cls.sqlmeta.idName, columns,<br />
diff -u ./main.py virtual/lib/python2.4/site-packages/SQLObject-0.7.9-py2.4.egg/sqlobject/main.py<br />
&#8212; ./main.py   2007-11-21 17:22:00.000000000 +0000<br />
+++ virtual/lib/python2.4/site-packages/SQLObject-0.7.9-py2.4.egg/sqlobject/main.py     2007-11-21 17:07:01.000000000 +0000<br />
@@ -1289,7 +1289,7 @@<br />
                orderBy=NoDefault, limit=None,<br />
                lazyColumns=False, reversed=False,<br />
                distinct=False, connection=None,<br />
-               join=None):<br />
+               join=None, selectAlso=None):<br />
         return cls.SelectResultsClass(cls, clause,<br />
                              clauseTables=clauseTables,<br />
                              orderBy=orderBy,<br />
@@ -1298,7 +1298,8 @@<br />
                              reversed=reversed,<br />
                              distinct=distinct,<br />
                              connection=connection,<br />
-                             join=join)<br />
+                             join=join,<br />
+                             selectAlso=selectAlso)<br />
     select = classmethod(select)</p>
<p>     def selectBy(cls, connection=None, **kw):</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://www.markshuttleworth.com/archives/9#comment-205430</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Wed, 21 Nov 2007 16:59:12 +0000</pubDate>
		<guid isPermaLink="false">http://mscom.rabbithole.co.za/archives/9#comment-205430</guid>
		<description>Hi Mark,

What happened to that patch do you know? I could really do with it right now (trying to get sqlobject &#38; fti to play). If you still have the code a) that would be amazing after 2 years and b) that would be fantastic.

Dave</description>
		<content:encoded><![CDATA[<p>Hi Mark,</p>
<p>What happened to that patch do you know? I could really do with it right now (trying to get sqlobject &amp; fti to play). If you still have the code a) that would be amazing after 2 years and b) that would be fantastic.</p>
<p>Dave</p>
]]></content:encoded>
	</item>
</channel>
</rss>
