Traceback (most recent call last): File "/home/thadeusb/Applications/web2py/gluon/restricted.py", line 184, in restricted exec ccode in environment File "/home/thadeusb/Applications/web2py/applications/thadeusb0/controllers/default.py", line 51, in <module> File "/home/thadeusb/Applications/web2py/gluon/globals.py", line 103, in <lambda> self._caller = lambda f: f() File "/home/thadeusb/Applications/web2py/applications/thadeusb0/controllers/default.py", line 30, in user return dict(form=auth()) File "/home/thadeusb/Applications/web2py/gluon/tools.py", line 691, in __call__ return self.login() File "/home/thadeusb/Applications/web2py/gluon/tools.py", line 950, in login table_user[username].requires = tmpvalidator UnboundLocalError: local variable 'tmpvalidator' referenced before assignment
The fix: (Massimo I will email you patch) Index: gluon/tools.py =================================================================== --- gluon/tools.py (revision 1481) +++ gluon/tools.py (working copy) @@ -941,7 +942,7 @@ table_user = self.settings.table_user if 'username' in table_user.fields: username = 'username' - tmpnewvalidator = IS_NOT_EMPTY(self.messages.is_empty) + tmpvalidator = IS_NOT_EMPTY(self.messages.is_empty) else: username = 'email' tmpvalidator = IS_EMAIL(self.messages.invalid_email) -Thadeus -- 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.