dabo Commit
Revision 6518
Date: 2011-03-31 15:13:05 -0700 (Thu, 31 Mar 2011)
Author: Paul
Trac: http://trac.dabodev.com/changeset/6518

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

Log:
Attempt to be more clear on how the expressions should be formed.


Diff:
Modified: trunk/dabo/biz/dBizobj.py
===================================================================
--- trunk/dabo/biz/dBizobj.py   2011-03-31 21:33:38 UTC (rev 6517)
+++ trunk/dabo/biz/dBizobj.py   2011-03-31 22:13:05 UTC (rev 6518)
@@ -1197,7 +1197,12 @@
 
 
        def filterByExpression(self, expr):
-               """Allows you to filter by any valid Python expression."""
+               """Allows you to filter by any valid Python expression.
+
+               Use the field alias names, for example:
+                       biz.filterByExpression('cust_name[0].lower() = 'a')
+               where cust_name is a field alias name in this record.
+               """
                self._CurrentCursor.filterByExpression(expr)
 
 



_______________________________________________
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