On Mar 31, 2011, at 12:52 PM, VP wrote:
> 
>> I guess I can see leaving the default to re-map hyphens to underscores but
>> perhaps only on functions?
> 
> YES.
> 
> App names are file names, and people generally don't want to have
> hyphens in their file names, which is the opposite of what they would
> want for URLs.
> 
> As for app names, I think they should be left alone because the
> typical convention for file naming is underscored, which is the
> opposite of what is desired for URLs.  In other words, if people name
> their files with underscores, it wouldn't be reasonable to assume they
> want hyphens.

What if they want hyphens? While app names are indeed file names, they're also 
used for other purposes within web2py. As somebody pointed out, they might well 
appear in an import statement, in which case they'd need to be valid Python 
identifiers--no hyphens.

I think we ought to stay safe and require that a/c/f all be valid Python 
identifiers, and give users the option of presenting underscores as hyphens in 
URLs. I agree, though, that translation should probably not be the default (as 
it is now).

Reply via email to