dabo Commit
Revision 5671
Date: 2010-02-09 12:54:48 -0800 (Tue, 09 Feb 2010)
Author: Ed
Trac: http://trac.dabodev.com/changeset/5671

Changed:
U   trunk/dabo/ui/uiwx/dShell.py

Log:
Got tired of case-sensitivity screwing up my history searches.


Diff:
Modified: trunk/dabo/ui/uiwx/dShell.py
===================================================================
--- trunk/dabo/ui/uiwx/dShell.py        2010-02-09 17:41:55 UTC (rev 5670)
+++ trunk/dabo/ui/uiwx/dShell.py        2010-02-09 20:54:48 UTC (rev 5671)
@@ -85,7 +85,7 @@
 
        def refilter(self):
                """Display only those commands that contain the search string"""
-               self.DisplayedHistory = self.History.filter("cmd", 
self.currentSearch, "contains")
+               self.DisplayedHistory = self.History.filterByExpression(" '%s' 
in cmd.lower() " % self.currentSearch.lower())
                sel = self.lstMatch.Value
                self.lstMatch.Choices = [rec["cmd"] for rec in 
self.DisplayedHistory]
                if sel:



_______________________________________________
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