Unsure as to why this isn't working, it looks the same as the examples in 
the DAL chapter:

search_form = SQLFORM.factory(Field('Search', requires=IS_ALPHANUMERIC()))
    if search_form.process().accepted:
        session.search_term = search_form.vars.search_term
        #query = ( db.group_of_events.group_name.contains(session.search_term) 
| db.group_of_events.group_desc.contains(session.search_term)  | 
db.group_of_events.group_tags.contains(session.search_term) )
        rows = 
db(db.group_of_events.group_name.contains(session.search_term)).select()
        return dict(search_terms=rows)


I'm getting a:
<type 'exceptions.TypeError'> CONTAINS() takes exactly 3 arguments (2 given)

What am I doing wrong?

Thanks for all suggestions,

Alec Taylor

-- 



Reply via email to