I get the same error on all of my apps TypeError: 'NoneType' object is unsubscriptable
The offending line is as follows in appadmin.html firstkey=tbl[tbl._primarykey[0]] -Thadeus On Sat, Jan 9, 2010 at 11:44 PM, mdipierro <mdipie...@cs.depaul.edu> wrote: > Can if you see if replacing layout.html with the one in trunk fixes > the probelm? > > On Jan 9, 5:23 pm, Jose <jjac...@gmail.com> wrote: >> The following errror when use occurs when DAL with Sqlite (no problems >> with postgres): >> >> Traceback (most recent call last): >> File "/usr/home/jose/w2p/gluon/restricted.py", line 173, in >> restricted >> exec ccode in environment >> File "/usr/home/jose/w2p/applications/prueba/views/appadmin.html", >> line 90, in <module> >> {{=T("record")}} {{=A('%s=%s'%request.vars.items()[0],_href=URL >> (r=request,f='update',args=request.args[:2],vars=request.vars))}} >> TypeError: 'NoneType' object is unsubscriptable >> >> happens even though I have not defined anything in the model. >> >> comment line >> auth.define_tables() >> >> it works, however, to define a table, occurs again. >> >> this happens after you have upgraded W2P a few days ago. >> >> Regards, >> Jose > > -- > You received this message because you are subscribed to the Google Groups > "web2py-users" group. > To post to this group, send email to web...@googlegroups.com. > To unsubscribe from this group, send email to > web2py+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/web2py?hl=en. > > > >
-- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.