def sections(): allowedtables = ['table1','table2'] tablename = request.args(0) if tablename in allowedtables: rows = db(db[tablename]).select() else: rows = 'You can't access this table'
return dict(rows=rows) http://myapp/default/sections/<tablename> Is that? Bruno Rocha http://about.me/rochacbruno/bio 2011/1/18 walter <wdv...@gmail.com> > > but the problem is that you have two controllers. Perhaps you should have > only one. > > I have thought about it. Unfortunately, I need sometimes show all our > customers but at the next time I need view all them trips. I would be > glad to do merge two controllers into the one. But I cannot figure out > how to determine which of the tables need use in that, or otherwise > case?