<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to patches</title><link>https://sourceforge.net/p/skunkweb/patches/</link><description>Recent changes to patches</description><atom:link href="https://sourceforge.net/p/skunkweb/patches/feed.rss" rel="self"/><language>en</language><lastBuildDate>Thu, 27 Jun 2002 07:05:47 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/skunkweb/patches/feed.rss" rel="self" type="application/rss+xml"/><item><title>PyDO static_getUnique fix</title><link>https://sourceforge.net/p/skunkweb/patches/1/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Path is self-explanatory. Hope it will be included in&lt;br /&gt;
next release. &lt;br /&gt;
of course, len(None) raises exception - it's not what I&lt;br /&gt;
want when record not found &lt;br /&gt;
tested on Python 2.1, 2.2 - FreeBSD 4.5&lt;/p&gt;
&lt;p&gt;diff -u -r1.2 PyDO.py&lt;br /&gt;
--- PyDO.py     2002/06/27 07:00:19     1.2&lt;br /&gt;
+++ PyDO.py     2002/06/27 07:04:11&lt;br /&gt;
@@ -286,10 +286,10 @@&lt;br /&gt;
where, values = self._uniqueWhere(conn, kw)&lt;br /&gt;
sql = sql + where&lt;br /&gt;
results = conn.execute(sql, values,&lt;br /&gt;
self.fieldDict)&lt;br /&gt;
-        if len(results) &amp;amp;gt; 1:&lt;br /&gt;
-            raise PyDOError, 'got more than one row on&lt;br /&gt;
unique query!'&lt;br /&gt;
if not results:&lt;br /&gt;
return&lt;br /&gt;
+        if len(results) &amp;amp;gt; 1:&lt;br /&gt;
+            raise PyDOError, 'got more than one row on&lt;br /&gt;
unique query!'&lt;br /&gt;
if results:&lt;br /&gt;
return self(results[0])&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Thu, 27 Jun 2002 07:05:47 -0000</pubDate><guid>https://sourceforge.net0723bde34ac3aed72ab8c4ff7af58aa386713e4e</guid></item></channel></rss>