I've forgotten why we map dash to underscore myself. I'm in the unfortunate position of having a domain name with a dash in it and I'd kind of a hassle to deal with the mapping. My bitbucket repo has a dash for example but when I clone it I have to remember to change the name of the dir under applications to an underscore. I knew and understood why we do this at one time but I've slept since then and appear to have forgotten it all...
-- Joe On Thursday, August 8, 2013 1:28:53 AM UTC-7, Massimo Di Pierro wrote: > > Because only some characters are allowed in file names. Perhaps the rules > should be somewhat relaxed for static files? > > On Wednesday, 7 August 2013 21:45:55 UTC-5, Rob_McC wrote: >> >> >> I occasionally upload a file through admin panel, >> >> i.e. >> http://example.com/admin/default/design/welcome >> >> >> >> I noticed when uploading to: >> >> static/css >> >> that *- *or transformed to *_* >> *(dashes are changed to underscore) >> * >> Example: >> >> I upload to static/css >> >> css/my-file11.css >> >> but once uploaded it is changed to: (note underscore) >> css/my_file11.css >> >> Not sure why this happens. >> >> Rob >> web2py version >> 2.5.1-stable+timestamp.2013.06.06.15.39.19 >> > -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

