db.define_table('actividades_riesgos',Field('actividades',db.actividades),Field('riesgos',db.riesgos))
actividad=db(db.actividades.nombre==request.args(0)).select(db.actividades. id) riesgo=db(db.riesgos.nombre==request.args(1)).select(db.riesgos.id) record = db((db.actividades_riesgos.actividades==actividad) & (db.actividades_riesgos.riesgos==riesgo)).select().first() The last line show the next error: TypeError: int() argument must be a string or a number, not 'Rows' //