[web2py] Re: cannot login or register, missing links: login|register|lost password

2011-11-30 Thread Nik Go
Arghh... for some reason or another, I lost my:
auth.define_tables()

Thanks for the feedback Massimo.

On Tuesday, November 29, 2011, Nik Go wrote:

 I've been deleting tables and playing around with various settings, so I
 don't know what I've done exactly but now my app lost the links for logging
 in, registering or resetting passwords.

 If I try to access the links manually (i.e.
 http://127.0.0.1:8000/s1/default/user/register) or do the same for
 resetting the password, I get the same error:

 Traceback (most recent call last):

   File /home/n1k/web2py/gluon/restricted.py, line 194, in restricted

 exec ccode in environment

   File /home/n1k/web2py/applications/s1/controllers/default.py, line 243, 
 in module

   File /home/n1k/web2py/gluon/globals.py, line 149, in lambda

 self._caller = lambda f: f()

   File /home/n1k/web2py/applications/s1/controllers/default.py, line 205, 
 in user

 return dict(form=auth())

   File /home/n1k/web2py/gluon/tools.py, line 1126, in __call__

 return getattr(self,args[0])()

   File /home/n1k/web2py/gluon/tools.py, line 1804, in register

 separator=self.settings.label_separator

   File /home/n1k/web2py/gluon/sqlhtml.py, line 735, in __init__

 fields = [f.name for f in table if (ignore_rw or f.writable or 
 f.readable) and not f.compute]
 TypeError: 'NoneType' object is not iterable

 I've deleted my cookies, and tried using another browser with a different 
 profile. But I still get the same thing: no links, no way to register a user.

 Using the admin app, I manually registered a new user. It worked, but I could 
 get login, to.





[web2py] Re: cannot login or register, missing links: login|register|lost password

2011-11-29 Thread Massimo Di Pierro
Somewhere you are passing None where it expects a table object. Not
sure where without seeing the code.

fields = [f.name for f in table if (ignore_rw or f.writable or
f.readable) and not f.compute]
TypeError: 'NoneType' object is not iterable

On Nov 29, 6:29 am, Nik Go nikolai...@gmail.com wrote:
 I've been deleting tables and playing around with various settings, so I
 don't know what I've done exactly but now my app lost the links for logging
 in, registering or resetting passwords.

 If I try to access the links manually 
 (i.e.http://127.0.0.1:8000/s1/default/user/register) or do the same for
 resetting the password, I get the same error:

 Traceback (most recent call last):
   File /home/n1k/web2py/gluon/restricted.py, line 194, in restricted
     exec ccode in environment
   File /home/n1k/web2py/applications/s1/controllers/default.py, line
 243, in module
   File /home/n1k/web2py/gluon/globals.py, line 149, in lambda
     self._caller = lambda f: f()
   File /home/n1k/web2py/applications/s1/controllers/default.py, line
 205, in user
     return dict(form=auth())
   File /home/n1k/web2py/gluon/tools.py, line 1126, in __call__
     return getattr(self,args[0])()
   File /home/n1k/web2py/gluon/tools.py, line 1804, in register
     separator=self.settings.label_separator
   File /home/n1k/web2py/gluon/sqlhtml.py, line 735, in __init__
     fields = [f.name for f in table if (ignore_rw or f.writable or
 f.readable) and not f.compute]
 TypeError: 'NoneType' object is not iterable

 I've deleted my cookies, and tried using another browser with a
 different profile. But I still get the same thing: no links, no way to
 register a user.

 Using the admin app, I manually registered a new user. It worked, but
 I could get login, to.