Re: [web2py] Re: GAE - DAL problem

2011-09-28 Thread Felixdm || Augusto Félix Dal Mas
=D I fix it Now I'm using role no more description tid = db.auth_group(role='Teacher').id http://imageshack.us/f/28/screenshot1gvq.png/ But i dont know how select description any way or if the problem was the read/write property of description http://imageshack.us/f/51/screenshot2uy.png/ On Wed

[web2py] Re: GAE - DAL problem

2011-09-28 Thread Massimo Di Pierro
This does not prove that you have a record auth_group with description='Teacher'. Perhaps your record has description='Teacher \n'?

Re: [web2py] Re: GAE - DAL problem

2011-09-28 Thread Felixdm || Augusto Félix Dal Mas
Ok but if the record exist http://imageshack.us/f/198/dbgroup.png/ only if i do this the problem is fixed if i change for this if request.args(1)=="teacher": username_id = db.auth_user(username=request.vars['username']).id

[web2py] Re: GAE - DAL problem

2011-09-28 Thread Massimo Di Pierro
It is not finding the record db.auth_group(description="Teacher") Not sure it is a dal problem, On Sep 28, 2:50 pm, felixdm wrote: > I have this problem in GAE > > Traceback (most recent call last): >   File "/base/data/home/apps/s~book-on/1.353593485285740911/gluon/ > restricted.py", line 194, i