Can you check trunk? I have fixed that one line but not sure if this should be supported and what the consequences.
On Jan 24, 8:40 pm, pbreit <pbreitenb...@gmail.com> wrote: > 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=ee...> > > 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.