Hello,

I craated test app, in default.py added above index (and no other
changes in project):

@auth.requires_login()
def index():
...

After logging in, and going to index I get folowing error:


Traceback (most recent call last):
  File "/home/users/brushek/web2py/gluon/restricted.py", line 192, in
restricted
    exec ccode in environment
  File "/home/users/brushek/web2py/applications/test/controllers/
default.py", line 72, in <module>
  File "/home/users/brushek/web2py/gluon/globals.py", line 149, in
<lambda>
    self._caller = lambda f: f()
  File "/home/users/brushek/web2py/gluon/tools.py", line 2465, in f
    if condition and callable(condition):
UnboundLocalError: local variable 'condition' referenced before
assignment

Version of web2py:
$ cat VERSION
Version 1.99.3 (2011-10-19 08:46:51) dev

How to solve this problem ?

regards,
 brushek


Reply via email to