I am trying the trun. It works fine for my app under web2py. However
for the local GAE I get an error as soon as the browser goes to http//
127.0.0.1:8080. It may be some configuration issue, I just don't know.
Here's the error traceback.

Traceback (most recent call last):
  File "C:\webdev\google_appengine\google\appengine\tools
\dev_appserver.py", line 3206, in _HandleRequest
    self._Dispatch(dispatcher, self.rfile, outfile, env_dict)
  File "C:\webdev\google_appengine\google\appengine\tools
\dev_appserver.py", line 3149, in _Dispatch
    base_env_dict=env_dict)
  File "C:\webdev\google_appengine\google\appengine\tools
\dev_appserver.py", line 525, in Dispatch
    base_env_dict=base_env_dict)
  File "C:\webdev\google_appengine\google\appengine\tools
\dev_appserver.py", line 2402, in Dispatch
    self._module_dict)
  File "C:\webdev\google_appengine\google\appengine\tools
\dev_appserver.py", line 2312, in ExecuteCGI
    reset_modules = exec_script(handler_path, cgi_path, hook)
  File "C:\webdev\google_appengine\google\appengine\tools
\dev_appserver.py", line 2208, in ExecuteOrImportScript
    exec module_code in script_module.__dict__
  File "C:\webdev\web2py\gaehandler.py", line 55, in <module>
    import gluon.main
  File "C:\webdev\google_appengine\google\appengine\tools
\dev_appserver.py", line 1287, in Decorate
    return func(self, *args, **kwargs)
  File "C:\webdev\google_appengine\google\appengine\tools
\dev_appserver.py", line 1937, in load_module
    return self.FindAndLoadModule(submodule, fullname, search_path)
  File "C:\webdev\google_appengine\google\appengine\tools
\dev_appserver.py", line 1287, in Decorate
    return func(self, *args, **kwargs)
  File "C:\webdev\google_appengine\google\appengine\tools
\dev_appserver.py", line 1839, in FindAndLoadModule
    description)
  File "C:\webdev\google_appengine\google\appengine\tools
\dev_appserver.py", line 1287, in Decorate
    return func(self, *args, **kwargs)
  File "C:\webdev\google_appengine\google\appengine\tools
\dev_appserver.py", line 1790, in LoadModuleRestricted
    description)
  File "C:\webdev\web2py\gluon\main.py", line 37, in <module>
    os.chdir(web2py_path)
AttributeError: 'module' object has no attribute 'chdir'

On Oct 10, 11:57 am, mdipierro <[email protected]> wrote:
> 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 -- Hide quoted text -
>
> - Show quoted text -

Reply via email to