I think the problem is that your app is missing a "databases" folder.
Since you never run it locally without GAE it was never created. Can
you verify?

Massimo

On Jan 8, 5:42 am, v <vishal...@gmail.com> wrote:
> Hi Massimo,
>
> I was trying the web2py Auth module on GAE and while everything else
> seems to work fine, the change_password function throws up this error;
> works fine on localhost.  Looks like there's an attempt to create
> directory in sql.py; ofcourse, mkdir isn't supported on GAE, hence the
> error.  I suppose this needs to be modified for GAE (?).
>
> 01-08 03:35AM 00.070 /myapp/site/user/change_password 500 786ms
> 186cpu_ms 90api_cpu_ms 0kb Mozilla/5.0 (Windows; U; Windows NT 6.1; en-
> US) AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.0.249.43 Safari/
> 532.5,gzip(gfe)
> 15.203.233.80 - - [08/Jan/2010:03:35:00 -0800] "GET /myapp/site/user/
> change_password HTTP/1.1" 500 393 "http://xyz.appspot.com/myapp/site/
> user/profile" "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US)
> AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.0.249.43 Safari/
> 532.5,gzip(gfe)" "xyz.appspot.com"
> E 01-08 03:35AM 00.849
> In FILE: /base/data/home/apps/xyz/1.339020632334333469/applications/
> myapp/controllers/site.py
>
> Traceback (most recent call last):
>   File "/base/data/home/apps/xyz/1.339020632334333469/gluon/
> restricted.py", line 173, in restricted
>     exec ccode in environment
>   File "/base/data/home/apps/xyz/1.339020632334333469/applications/
> myapp/controllers/site.py:user", line 34, in <module>
>   File "/base/data/home/apps/xyz/1.339020632334333469/gluon/
> globals.py", line 96, in <lambda>
>     self._caller = lambda f: f()
>   File "/base/data/home/apps/xyz/1.339020632334333469/applications/
> myapp/controllers/site.py:user", line 16, in user
>   File "/base/data/home/apps/xyz/1.339020632334333469/gluon/tools.py",
> line 702, in __call__
>     return self.change_password()
>   File "/base/data/home/apps/xyz/1.339020632334333469/gluon/tools.py",
> line 1461, in change_password
>     self.messages.mismatched_password)]))
>   File "/base/data/home/apps/xyz/1.339020632334333469/gluon/
> sqlhtml.py", line 910, in factory
>     return SQLFORM(SQLDB(None).define_table('no_table', *fields),
>   File "/base/data/home/apps/xyz/1.339020632334333469/gluon/sql.py",
> line 859, in __init__
>     os.mkdir(self._folder)
> AttributeError: 'module' object has no attribute 'mkdir'
>
> regards,
> -V
-- 
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.


Reply via email to