Hi!!! I made a modifications in my script: def list_records(): expresion = 'list_records' table = request.args(0) query = request.vars.query pos = query.find(expresion)
if pos >= 0: pos = pos + len(expresion) query= query[pos:] q = db(query) records = q.select() else: records = T('record does not exist') return dict(records=records,table=pos,query=query) But I get the same error: <type 'exceptions.AttributeError'> 'str' object has no attribute 'ignore_common_filters' Is there other posibility to implement a relation master-detail?. Thanks for your time. On 14 ene, 20:16, Alan Etkin <spame...@gmail.com> wrote: > > def list_records(): > > table = request.args(0) > > query = request.vars.query > > records= db(query).select(db[table]) > > return dict(records=records,table=table,query=query) > > the fourth line passes a string to the db instance call that expects a > query object as those created with this statement: > > q = db.mytable.myfield.id == <number> > > Maybe you can do new_query = eval(q) to create the normal db call > input. The admin interface does something similar (i don't know if it > uses eval) as it processes queries sent by browser user input.