Some thoughts about this:

URI's  use slashes;

backslashes are Windows operating system file separators;

Apache (regardless of where it runs) I expect will not honor backslashes for
file separators.

I believe this has more to do with roots in the C language than unix or
shell ( "\"  as an escape, e.g.  \0777  or \t  or \x3c  are all from the
language, which is how this idiom made it into Unix tools...)

Given that - it is reasonable and probably most safe to use '/' for file and
URI separators (and in web2py these two are closely linked).

Python will take care of the appropriate translations when dealing with
windows file access.


On Sun, Jul 26, 2009 at 2:46 PM, Alex Fanjul <[email protected]> wrote:

>
> In realation to this, I think I found a bug with "\"slashes in
> "windows+apache+wsgi" enviroment, could somebody check it?
> The thread is:
> http://groups.google.com/group/web2py/browse_thread/thread/4982e96988e3ee57
>
> alex F
>
> El 25/07/2009 8:10, BG escribió:
> > Just a small thing I noticed. This may only be on windows.
> >
> > Files are listed using backslashes. E.g. default\index.html
> > But if you add a new file you must write it using slashes. E.g.
> > default/new_file.html
> >
> > I suppose the listed files should be shown with slashes only no matter
> > the platform.
> > >
> >
> >
>
> --
> Alejandro Fanjul Fdez.
> [email protected]
> www.mhproject.org
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to