alfonsodg / demo-web2py

Apache License 2.0
0 stars 0 forks source link

Cann't create view files in windows platform(patch) #6

Closed alfonsodg closed 10 years ago

alfonsodg commented 10 years ago

From limo...@gmail.com on March 04, 2008 00:13:54

What steps will reproduce the problem? 1. Create a view just like "test/index" What is the expected output? What do you see instead? It will report "Cann't create file test/index.html" What version of the product are you using? On what operating system? trunk, windows xp Please provide any additional information below. It's because the wrong way to create multi level directories in windows xp. When a path has driver, just like 'd:/abc', when you split it with '/', and join it again, the '/' after the dirver will be lost.

{{{

a = 'd:/abc' import os os.path.join(*a.split('/')) 'd:abc' }}}

So it's not correct, and I changed the code of making multi level directories.

Original issue: http://code.google.com/p/web2py/issues/detail?id=6

alfonsodg commented 10 years ago

From limo...@gmail.com on March 03, 2008 21:56:10

I'm sorry forgot the attatchment.

Attachment: creatfile.diff

alfonsodg commented 10 years ago

From massimod...@gmail.com on March 03, 2008 22:38:51

Status: Fixed