If you only use this on GAE there is no problem. The problem is that
somehow you are not uploading the yourapp/databases folder on GAE. It
should be there althought it should be empty.

On Aug 7, 6:05 am, Delaney Burke <delaney.bu...@gmail.com> wrote:
> Hi, i am using a form_factory on GAE and i keep getting this error.
>
> In FILE: /base/data/home/apps/thewallapp/1.335448138740622861/
> applications/init/controllers/account.py
>
> Traceback (most recent call last):
>    File "/base/data/home/apps/thewallapp/1.335448138740622861/gluon/
> restricted.py", line 178, in restricted
>      exec ccode in environment
>    File "/base/data/home/apps/thewallapp/1.335448138740622861/
> applications/init/controllers/account.py:signup", line 56, in <module>
>    File "/base/data/home/apps/thewallapp/1.335448138740622861/gluon/
> globals.py", line 101, in <lambda>
>      self._caller = lambda f: f()
>    File "/base/data/home/apps/thewallapp/1.335448138740622861/
> applications/init/controllers/account.py:signup", line 38, in signup
>    File "/base/data/home/apps/thewallapp/1.335448138740622861/gluon/
> sqlhtml.py", line 866, in factory
>      return SQLFORM(SQLDB(None).define_table('no_table', *fields),
>    File "/base/data/home/apps/thewallapp/1.335448138740622861/gluon/
> sql.py", line 675, in __init__
>      os.mkdir(self._folder)
> AttributeError: 'module' object has no attribute 'mkdir'
>
> So i looked in the sql.py file and and found this
>          # Creating the folder if it does not exists
>          if self._folder:
>              if not os.path.exists(self._folder):
>                         os.mkdir(self._folder)
>                 pass
>
> When i change the file to
>
>          # Creating the folder if it does not exists
>          if self._folder:
>              if not os.path.exists(self._folder):
>                         #os.mkdir(self._folder)
>                                 pass
>
> it all works fine.
>
> from my investigations you are unable to make a directory on GAE and i  
> think that is why it breaks.
>
>          # Creating the folder if it does not exists
>          if self._folder:
>              if not os.path.exists(self._folder):
>                         #os.mkdir(self._folder)
>                                 pass
>
> what are the implications of commenting out this code ? have i just  
> stored up another problem for myself later?
> if there are no implications is there anyway of having some type of  
> check the does not do this call if on GAE?
>
> Thanks in advance Delaney Burke
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@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