On Jun 5, 2011, at 5:28 PM, Massimo Di Pierro wrote: > > On Jun 4, 4:08 pm, weheh <richard_gor...@verizon.net> wrote: >> On 1.96.3 I tried the new app wizard for kicks. I let everything >> default except for the app name, "foobar". Wizard crashed. >> >> Traceback (most recent call last): >> File "N:\web2py\gluon\restricted.py", line 188, in restricted >> exec ccode in environment >> File "N:/web2py/applications/admin/controllers/wizard.py", line 572, >> in <module> >> File "N:\web2py\gluon\globals.py", line 96, in <lambda> >> self._caller = lambda f: f() >> File "N:/web2py/applications/admin/controllers/wizard.py", line 200, >> in step6 >> create(form.vars) >> File "N:/web2py/applications/admin/controllers/wizard.py", line 489, >> in create >> file=open(meta,'wb') >> IOError: [Errno 2] No such file or directory: 'N:\\web2py\\applications >> \\admin/..\\foobar\\wizard.metadata'
Something else is a little odd. Where is the slash coming from? I don't think it's causing trouble, since Windows is generally OK with slashes, but we've tried to use Python's OS-specific separators. There are three places in gluon.admin that still use explicit slashes. But request.folder gets terminated with os.sep, and I assume that's what's being used here. So: why the slash? Just curious.