[web2py] Re: Globals.py Bad Request

2013-11-29 Thread Leonardo Pires Felix
It have a return on the file, i've deleted the comment on code to put here and deleted the return too by mistake. Here is complete code. The same that is having the issue: @auth.requires_membership("secretaria") def turmas(): campos = [db.alunos.id,db.alunos.nome,db.alunos.nome_responsavel,db

[web2py] Re: Globals.py Bad Request

2013-11-28 Thread Massimo Di Pierro
I think your action is missing a return value: @auth.requires_membership("secretaria") def turmas(): campos = [db.alunos.id,db.alunos.nome,db.alunos.nome_responsavel,db. alunos.serie_turma] form = SQLFORM.grid(db.alunos,fields=campos,deletable=False,orderby= "alunos.nome") return dict(