I'm getting an error when using a string as a query instead of an actual 
DAL-style query object. This used to work. My guess is that it broke around 
the time of this changeset which implemented "ignore_common_filters":
ee791c9a6b9c<http://code.google.com/p/web2py/source/detail?path=/gluon/dal.py&r=ee791c9a6b9c987f22c5455c3d53594023d5a0f2>



  File "/Users/pbreit/web2py/gluon/dal.py", line 1194, in _select
    if query and not query.ignore_common_filters:
AttributeError: 'str' object has no attribute 'ignore_common_filters'


query"grouping!='test' AND status='active' AND title LIKE 
'%newer%'"query.ignore_common_filtersundefined


My code looks something like this:


query = "status='active'"

rows = db(query).select(db.item.ALL)


I'm using a string as a query in order to do a Postgres full text search.

Reply via email to