Nonetype object unscriptable

0 views
Skip to first unread message

DJ

unread,
Apr 23, 2009, 5:17:05 PM4/23/09
to web2py Web Framework
Help! Anyone knows why this is happening? Installed a new app on MySQL
and I get these errors when I try to access the admin interface to
view the database. I have removed any session data from the app.

Traceback (most recent call last):
File "C:\Program Files\web2py\gluon\restricted.py", line 98, in
restricted
exec ccode in environment
File "C:/Program Files/web2py/applications/strain/views/
appadmin.html", line 35, in <module>
{{for dt in items:}}
TypeError: 'NoneType' object is unsubscriptable

mdipierro

unread,
Apr 23, 2009, 5:57:18 PM4/23/09
to web2py Web Framework
Which app is this?

This app seems to have a old appadmin file (the current one does not
have that line) and I suspect there is a buggy appadmin.

Move the views/appadmin.html and controllers/appadmin.py over from the
welcome app.

Massimo

DJ

unread,
Apr 23, 2009, 6:16:18 PM4/23/09
to web2py Web Framework
Hi Massimo,

This is an app I wrote on version 1.56 and saw this when I installed
it on a machine running 1.59.

Replacing the new version appadmin files fixed this issue. Thanks for
your quick response!

I recently saw your interview on PyCon (vs Django, etc.) and liked
your comments/vision for Web2py.

-
Sebastian
Reply all
Reply to author
Forward
0 new messages