[pkg-fso-commits] [SCM] FSO frameworkd Debian packaging branch, debian, updated. upstream/0.9.5.5-717-g0f98819

Sebastian Krzyszkowiak seba.dos1 at gmail.com
Sat Aug 6 08:18:11 UTC 2011


The following commit has been merged in the debian branch:
commit 48c6d9e32005a65131116383b845468cda55304d
Author: Sebastian Krzyszkowiak <seba.dos1 at gmail.com>
Date:   Thu Aug 27 11:48:18 2009 +0200

    opimd: fix sorting non-string values

diff --git a/framework/subsystems/opimd/query_manager.py b/framework/subsystems/opimd/query_manager.py
index 3c02fe7..8d2b700 100644
--- a/framework/subsystems/opimd/query_manager.py
+++ b/framework/subsystems/opimd/query_manager.py
@@ -118,7 +118,11 @@ class QueryMatcher(object):
             def getkey(element):
                 return entries[element][sortby]
 
-            results.sort(key=getkey, cmp=compare, reverse = reverse)
+            try:
+                results.sort(key=getkey, cmp=compare, reverse = reverse)
+            except AttributeError:
+                casesens = True
+                results.sort(key=getkey, cmp=compare, reverse = reverse)
 
         return results
 

-- 
FSO frameworkd Debian packaging



More information about the pkg-fso-commits mailing list