Read this: http://groups.google.com/group/web2py/browse_thread/thread/4fee439d25941c5e/58c21857e8509c9d#58c21857e8509c9d
On Oct 14, 2:00 am, Kostas M <kmo...@hotmail.com> wrote: > I am still getting this error with Version 1.87.3 > > Version > web2py Version 1.87.3 (2010-10-13 19:44:46) > > Error ticket for "images" > Ticket 127.0.0.1.2010-10-14.09-53-53.ad7929fb-6991-49e1- > a83c-8ac1a49712a4 > > Error traceback > > 1. > 2. > 3. > 4. > 5. > > Traceback (most recent call last): > File "gluon/restricted.py", line 188, in restricted > File "C:/Temp/web2py/applications/images/controllers/appadmin.py", > line 14, in <module> > NameError: name 'DEMO_MODE' is not defined > > Error snapshot > Detailed traceback description > > * Exception: <type 'exceptions.NameError'>(name 'DEMO_MODE' is not > defined) > Exception instance attributes > o __setattr__: <method-wrapper '__setattr__' of > exceptions.NameError object at 0x037C7300> > o __reduce_ex__: <built-in method __reduce_ex__ of > exceptions.NameError object at 0x037C7300> > o __getslice__: <method-wrapper '__getslice__' of > exceptions.NameError object at 0x037C7300> > o __getitem__: <method-wrapper '__getitem__' of > exceptions.NameError object at 0x037C7300> > o __setstate__: <built-in method __setstate__ of > exceptions.NameError object at 0x037C7300> > o __getattribute__: <method-wrapper '__getattribute__' of > exceptions.NameError object at 0x037C7300> > o __str__: <method-wrapper '__str__' of exceptions.NameError > object at 0x037C7300> > o args: ("name 'DEMO_MODE' is not defined",) > o __reduce__: <built-in method __reduce__ of > exceptions.NameError object at 0x037C7300> > o __class__: <type 'exceptions.NameError'> > o __dict__: {} > o __delattr__: <method-wrapper '__delattr__' of > exceptions.NameError object at 0x037C7300> > o __repr__: <method-wrapper '__repr__' of > exceptions.NameError object at 0x037C7300> > o __hash__: <method-wrapper '__hash__' of > exceptions.NameError object at 0x037C7300> > o __doc__: 'Name not found globally.' > o __init__: <method-wrapper '__init__' of > exceptions.NameError object at 0x037C7300> > o __new__: <built-in method __new__ of type object at > 0x1E1CD8D8> > * Python 2.5.4: C:\Temp\web2py\web2py.exe > > File C:\Temp\web2py\gluon\restricted.py in restricted at line 188