dabo Commit
Revision 5136
Date: 2009-03-18 03:44:10 -0700 (Wed, 18 Mar 2009)
Author: Pedro.Gato
Trac: http://trac.dabodev.com/changeset/5136

Changed:
U   trunk/dabo/biz/dBizobj.py

Log:
Make virtualField text search case insensitive

Diff:
Modified: trunk/dabo/biz/dBizobj.py
===================================================================
--- trunk/dabo/biz/dBizobj.py   2009-03-17 18:51:49 UTC (rev 5135)
+++ trunk/dabo/biz/dBizobj.py   2009-03-18 10:44:10 UTC (rev 5136)
@@ -1048,15 +1048,15 @@
                                
self.__filterPKVirtual.append(self.getFieldVal(self.KeyField))
 
                elif op.lower() in ("starts with", "begins with"):
-                       if virtValue.startswith(expr):
+                       if virtValue.lower().startswith(expr.lower()):
                                
self.__filterPKVirtual.append(self.getFieldVal(self.KeyField))
 
                elif op.lower() in ("endswith"):
-                       if virtValue.endswith(expr):
+                       if virtValue.lower().endswith(expr.lower()):
                                
self.__filterPKVirtual.append(self.getFieldVal(self.KeyField))
 
                elif op.lower() in ("contains"):
-                       if expr in virtValue:
+                       if expr.lower() in virtValue.lower():
                                
self.__filterPKVirtual.append(self.getFieldVal(self.KeyField))
 
        def removeFilter(self):



_______________________________________________
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