diff --git a/product/ZSQLCatalog/SearchText/SearchTextParser.py b/product/ZSQLCatalog/SearchText/SearchTextParser.py index eedab6a5f114384ba6e82d3a1c7d33eaa78cb5aa..f795176455a75fe2700b8772b48320b3531539f0 100755 --- a/product/ZSQLCatalog/SearchText/SearchTextParser.py +++ b/product/ZSQLCatalog/SearchText/SearchTextParser.py @@ -276,11 +276,14 @@ if __name__ == '__main__': original_parse = _parse fake_column_id_set = set(['a', 'b', 'c', 'd', 'title', 'toto', 'titi', 'foo', 'bar']) + def isColumn(value): + return value in fake_column_id_set + def parse(input, *args, **kw): """ Parse input and walk generated AST. """ - result = original_parse(input, fake_column_id_set, *args, **kw) + result = original_parse(input, isColumn, *args, **kw) if result is not None: #print repr(result) result = walk(result)