On Mar 21, 2010, at 6:03 PM, Ricardo Aráoz wrote:
>>>> biz.removeFilters()
>>>> biz.filterByExpression(" 'W' in ccity and 'B' in ccity ")
> Traceback (most recent call last):
> File "<input>", line 1, in <module>
> File "C:\Python25\lib\site-packages\dabo\dabo\biz\dBizobj.py", line
> 1116, in filterByExpression
> self._CurrentCursor.filterByExpression(expr)
> File "C:\Python25\lib\site-packages\dabo\dabo\db\dCursorMixin.py",
> line 1213, in filterByExpression
> self._records = self._records.filterByExpression(expr)
> File "C:\Python25\lib\site-packages\dabo\dabo\db\dDataSet.py", line
> 206, in filterByExpression
> recs = eval(stmnt)
> File "<string>", line 1, in <module>
> NameError: name 'ccity' is not defined
>>>
That's a bug. The code that translates field names in the expression
into record references behind the scenes only changes the first instance of any
field name. I'll look into getting a fix out soon.
-- Ed Leafe
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message:
http://leafe.com/archives/byMID/[email protected]