dabo Commit
Revision 7006
Date: 2011-12-05 11:35:12 -0800 (Mon, 05 Dec 2011)
Author: Paul
Trac: http://trac.dabodev.com/changeset/7006

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

Log:
Sending "" as ordr parameter results in NoneType unscriptable error. Fixed.


Diff:
Modified: trunk/dabo/db/dCursorMixin.py
===================================================================
--- trunk/dabo/db/dCursorMixin.py       2011-12-04 00:01:12 UTC (rev 7005)
+++ trunk/dabo/db/dCursorMixin.py       2011-12-05 19:35:12 UTC (rev 7006)
@@ -548,10 +548,8 @@
                """
                currCol = self.sortColumn
                currOrd = self.sortOrder
-               if ordr is None:
+               if not ordr:
                        ordr = "ASC"
-               elif ordr == "":
-                       ordr = None
                if ordr[:3].upper() == "CYC":
                        ordr = {"ASC": "DESC", "DES": None, None: 
"ASC"}[currOrd]
                        col = currCol



_______________________________________________
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