On 14 June 2012 11:14, song <[email protected]> wrote: > My system is debian and web2py version is last ( manybe > 1.99.7--web2py_src.zip ) > > I'm studying and there are many mistake in my codes studied. > > But there are many poor users in the good softwares like web2py. > > But there are some logical mistakes in reporting errors. > > > I met the message > > --------------------------------------------- > > Traceback (most recent call last): > File "/home/song/WEB2PY/web2py/gluon/restricted.py", line 205, in restricted > exec ccode in environment > File > "/home/song/WEB2PY/web2py/applications/Working/views/default/index.html", > line 58, in <module> > File "/home/song/WEB2PY/web2py/gluon/tools.py", line 1217, in navbar > if 'username' in self.settings.table_user.fields() and \ > > AttributeError: 'NoneType' object has no attribute 'fields' > > --------------------------------------------------------------- > > And the index.html has no lines 58 andd the source models/db.py is as > > > The error refers to the generated index.html. If you click on
"/home/song/WEB2PY/web2py/applications/Working/views/default/index.html" in the error message you quoted above you will see the generated file with line numbers. Were you logged in when the error occurred? What does your controller look like (the def index()-part)? Regards Johann -- Because experiencing your loyal love is better than life itself, my lips will praise you. (Psalm 63:3)

