dabo Commit
Revision 4049
Date: 2008-04-21 11:19:11 -0700 (Mon, 21 Apr 2008)
Author: Ed
Trac: http://svn.dabodev.com/trac/dabo/changeset/4049

Changed:
U   trunk/dabo/db/dCursorMixin.py

Log:
Fixed a bug in the sorting code that was accidentally introduced in the last 
commit. 


Diff:
Modified: trunk/dabo/db/dCursorMixin.py
===================================================================
--- trunk/dabo/db/dCursorMixin.py       2008-04-17 21:16:18 UTC (rev 4048)
+++ trunk/dabo/db/dCursorMixin.py       2008-04-21 18:19:11 UTC (rev 4049)
@@ -483,10 +483,8 @@
                        ord = "ASC"
                elif ord == "":
                        ord = None
-               else:
-                       ord = ord[:3].upper()
-               if ord == "CYC":
-                       ord = {"ASC": "DES", "DES": None, None: "ASC"}[currOrd]
+               if ord[:3].upper() == "CYC":
+                       ord = {"ASC": "DESC", "DES": None, None: "ASC"}[currOrd]
                        col = currCol
 
                # Make sure that the specified column is a column in the result 
set




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]

Reply via email to