<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to patches</title><link href="https://sourceforge.net/p/skunkweb/patches/" rel="alternate"/><link href="https://sourceforge.net/p/skunkweb/patches/feed.atom" rel="self"/><id>https://sourceforge.net/p/skunkweb/patches/</id><updated>2002-06-27T07:05:47Z</updated><subtitle>Recent changes to patches</subtitle><entry><title>PyDO static_getUnique fix</title><link href="https://sourceforge.net/p/skunkweb/patches/1/" rel="alternate"/><published>2002-06-27T07:05:47Z</published><updated>2002-06-27T07:05:47Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net0723bde34ac3aed72ab8c4ff7af58aa386713e4e</id><summary type="html">&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;</summary></entry></feed>