I this this bug is fixed in trunk. Can you try trunk?

Massimo

On Oct 10, 8:18 am, Chuck Paulson <[email protected]> wrote:
> I am using web2py version 1.86.2 on Windows Vista and the error
> happened with both Internet Explorer and Google Chrome.
>
> Registration works fine when running web2py without GAE. However with
> local GAE I get the error given above. For some reason the line
>
> table_user[form.vars.id] = dict(registration_key='')
>
> in tools.py line#1627 is failing to write to the
> db.auth_user.registration_key field and the default UUID remains
> there. If I change that field to the null string then it works fine.
>
> On Oct 10, 2:46 am, mdipierro <[email protected]> wrote:
>
> > which web2py version?
>
> > On Oct 9, 11:27 pm, Chuck Paulson <[email protected]> wrote:
>
> > > I am getting an error while registering on my local GAE. I fill out
> > > the registration form, click submit, and then get a ticket for the
> > > error shown below.
>
> > > The user is put into the auth_user table, but the registration_key
> > > field is set to a UUID, causing a "registration needs verification"
> > > message to pop up when attempting to login.
>
> > > What could be causing this?
>
> > > Chuck Paulson
>
> > > Traceback (most recent call last):
> > >   File "C:\webdev\web2py\gluon\restricted.py", line 188, in restricted
> > >     exec ccode in environment
> > >   File "C:\webdev\web2py\applications\ArticleSpin/controllers/
> > > default.py:user", line 155, in <module>
> > >   File "C:\webdev\web2py\gluon\globals.py", line 96, in <lambda>
> > >     self._caller = lambda f: f()
> > >   File "C:\webdev\web2py\applications\ArticleSpin/controllers/
> > > default.py:user", line 134, in user
> > >   File "C:\webdev\web2py\gluon\tools.py", line 1028, in __call__
> > >     return self.register()
> > >   File "C:\webdev\web2py\gluon\tools.py", line 1627, in register
> > >     table_user[form.vars.id] = dict(registration_key='')
> > >   File "C:\webdev\web2py\gluon\sql.py", line 1672, in __setitem__
> > >     elif not self._db(self._id == key)\
> > >   File "C:\webdev\web2py\gluon\sql.py", line 1683, in __getattr__
> > >     return dict.__getitem__(self,key)
> > > KeyError: '_id'- Hide quoted text -
>
> > - Show quoted text -
>
>

Reply via email to